/* public/css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #9A7A2E;
  --dark: #0F0F0F;
  --dark-2: #1A1A1A;
  --dark-3: #252525;
  --text-primary: #1A1A2E;
  --text-secondary: #555566;
  --text-muted: #888899;
  --white: #FFFFFF;
  --off-white: #FAF9F7;
  --surface: #F5F4F0;
  --border: #E8E6E0;
  --red: #E63946;
  --green: #2A9D8F;
  --blue: #264653;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
}

/* ── TYPOGRAPHY ─────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── UTILITY ─────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-gold { background: var(--gold); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-red { background: var(--red); color: #fff; }
.badge-gray { background: var(--surface); color: var(--text-secondary); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--white);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
}
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-3); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  background: var(--surface); color: var(--text-primary); border: none;
}
.btn-icon:hover { background: var(--gold); color: var(--white); }

/* ── FORMS ───────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--text-primary); background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888899'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }

/* ── HEADER ──────────────────────────────── */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--gold); }

.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900;
  color: var(--dark);
  flex-shrink: 0;
}
.logo span { color: var(--gold); }

.search-bar {
  flex: 1; max-width: 600px;
  display: flex; align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 4px 4px 4px 20px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--gold); background: var(--white); }
.search-bar input {
  flex: 1; border: none; background: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  outline: none; color: var(--text-primary);
}
.search-bar button {
  background: var(--gold); color: var(--white);
  border: none; border-radius: 50px;
  padding: 10px 22px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: var(--transition);
}
.search-bar button:hover { background: var(--gold-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-action-btn {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 12px;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-action-btn:hover { color: var(--gold); background: var(--surface); }
.header-action-btn i { font-size: 20px; }
.cart-count {
  position: absolute; top: 4px; right: 8px;
  background: var(--gold); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── NAVIGATION ──────────────────────────── */
.main-nav {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.nav-list {
  display: flex; list-style: none; gap: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px; font-size: 14px; font-weight: 500;
  color: var(--text-primary); transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: var(--white); }
.nav-link i { font-size: 12px; }

.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 220px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition);
  z-index: 200; padding: 8px;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 16px;
  font-size: 14px; color: var(--text-primary);
  border-radius: var(--radius-sm); transition: var(--transition);
}
.dropdown a:hover { background: var(--surface); color: var(--gold); }

/* ── HERO SECTION ────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0F0F0F 0%, #1A1A2E 50%, #16213E 100%);
  min-height: 580px; position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(201,168,76,0.3)"/><circle cx="80" cy="80" r="1.5" fill="rgba(201,168,76,0.2)"/><circle cx="50" cy="10" r="0.5" fill="rgba(201,168,76,0.4)"/></svg>') repeat;
  animation: float 20s linear infinite;
}
@keyframes float { from { background-position: 0 0; } to { background-position: 100px 100px; } }

.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.2); border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light); padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px); color: var(--white);
  line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-col {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
}
.hero-stat { color: rgba(255,255,255,0.9); }
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--gold);
}
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── SECTION STYLES ──────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .overline {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 580px; margin: 0 auto; }

/* ── CATEGORIES ──────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.category-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px; color: white;
}
.category-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.category-card p { font-size: 12px; color: var(--text-muted); }

/* ── PRODUCT CARDS ───────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--gold);
}
.product-image-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
}
.product-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-image-wrap img { transform: scale(1.08); }
.product-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.product-actions {
  position: absolute; right: 12px; top: 12px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.action-btn {
  width: 38px; height: 38px;
  background: var(--white); color: var(--text-primary);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: var(--transition); font-size: 14px;
}
.action-btn:hover { background: var(--gold); color: white; }
.product-info { padding: 18px; }
.product-category { font-size: 11px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-name {
  font-size: 15px; font-weight: 600; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-current { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.price-discount { font-size: 12px; font-weight: 600; color: var(--red); }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.product-rating .stars { color: #F59E0B; }
.add-to-cart-btn {
  width: 100%; padding: 11px;
  background: var(--dark); color: white;
  border: none; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: var(--transition);
}
.add-to-cart-btn:hover { background: var(--gold); }

/* ── FLASH MESSAGES ──────────────────────── */
.alert {
  padding: 14px 20px; border-radius: var(--radius-sm);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
  font-weight: 500;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* ── CART DRAWER ─────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: var(--transition);
  z-index: 1001; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  padding: 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-drawer-header h3 { font-size: 20px; }
.close-btn {
  background: var(--surface); border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-btn:hover { background: var(--red); color: white; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item {
  display: flex; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--surface);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-weight: 600; font-size: 15px; }
.cart-item-qty {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-total-row {
  display: flex; justify-content: space-between;
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 900;
  color: white; margin-bottom: 16px;
}
.footer-logo span { color: var(--gold); }
.footer p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer h5 { color: white; font-size: 15px; margin-bottom: 20px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; transition: var(--transition);
}
.social-link:hover { background: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.4);
}
.payment-icons { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.payment-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 4px; padding: 4px 10px;
  font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 600;
}

/* ── BREADCRUMBS ─────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .search-bar { order: 3; max-width: 100%; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section { padding: 48px 0; }
  .main-nav { overflow-x: auto; }
  .nav-list { flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* ── ANIMATIONS ──────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* ── LOADING SPINNER ─────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST NOTIFICATIONS ─────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
}
.toast {
  background: var(--dark); color: white;
  padding: 14px 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 380px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--gold);
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── STARS ───────────────────────────────── */
.stars { color: #F59E0B; }
.stars .fa-star, .stars .fa-star-half-alt { color: #F59E0B; }
.stars .far.fa-star { color: #D1D5DB; }

/* ── TABLES ──────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--surface); }
th {
  padding: 14px 16px; text-align: left;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px; font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off-white); }

/* ── STATUS BADGES ───────────────────────── */
.status { padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #EDE9FE; color: #5B21B6; }
.status-shipped { background: #D1FAE5; color: #065F46; }
.status-delivered { background: #ECFDF5; color: #047857; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }
.status-paid { background: #ECFDF5; color: #047857; }
.status-failed { background: #FEE2E2; color: #991B1B; }

/* ── PAGINATION ──────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--gold); color: white; border-color: var(--gold); }

/* ── PRODUCT DETAIL ──────────────────────── */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.product-main-img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.thumb-row { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: var(--radius-sm); border: 2px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.thumb.active, .thumb:hover { border-color: var(--gold); }
.product-detail-title { font-size: 32px; margin-bottom: 12px; }
.qty-selector {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.qty-input {
  width: 60px; text-align: center; padding: 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600;
}
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.variant-btn {
  padding: 8px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 14px; font-weight: 500; background: white;
  transition: var(--transition);
}
.variant-btn:hover, .variant-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }

/* ── CHECKOUT ────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.payment-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.payment-option {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 16px;
}
.payment-option:hover { border-color: var(--gold); }
.payment-option.selected { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.payment-option input[type="radio"] { display: none; }
.payment-logo {
  width: 50px; height: 30px; object-fit: contain;
  background: var(--surface); border-radius: 4px; padding: 2px;
}
.payment-label { font-weight: 600; font-size: 15px; }
.payment-desc { font-size: 13px; color: var(--text-muted); }
.order-summary-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 100px;
}
.order-summary-card h3 { font-size: 20px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 14px;
}
.summary-row.total {
  font-size: 18px; font-weight: 700; margin-top: 16px; padding-top: 16px;
  border-top: 2px solid var(--border);
}

/* ── DASHBOARD ───────────────────────────── */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--dark);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
}
.sidebar-logo {
  padding: 28px 24px;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900; color: white;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo span { color: var(--gold); }
.sidebar-nav { flex: 1; padding: 16px; overflow-y: auto; }
.sidebar-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.3);
  padding: 16px 12px 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(201,168,76,0.2);
  color: var(--gold-light);
}
.sidebar-link.active { background: var(--gold); color: white; }
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.main-content {
  margin-left: 260px; flex: 1;
  background: var(--off-white);
  min-height: 100vh;
}
.topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 32px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 20px; font-weight: 700; }
.content-area { padding: 32px; }

/* ── STAT CARDS ──────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; align-items: center; gap: 20px;
}
.stat-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-icon.gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.stat-icon.green { background: rgba(42,157,143,0.15); color: var(--green); }
.stat-icon.blue { background: rgba(38,70,83,0.15); color: var(--blue); }
.stat-icon.red { background: rgba(230,57,70,0.15); color: var(--red); }
.stat-value { font-size: 26px; font-weight: 800; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-change { font-size: 12px; font-weight: 600; margin-top: 4px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── CARDS ───────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 17px; font-weight: 700; }
.card-body { padding: 24px; }

/* ── MODAL ───────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-body { padding: 24px; }
.modal-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* ── EMPTY STATE ─────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 64px; margin-bottom: 20px; display: block; color: var(--border); }
.empty-state h3 { font-size: 20px; margin-bottom: 10px; color: var(--text-secondary); }

/* ── PRINT ───────────────────────────────── */
@media print {
  .sidebar, .topbar, .btn:not(.btn-primary) { display: none !important; }
  .main-content { margin-left: 0; }
}
