/* ==========================================================================
   DEBVIC Ventures — Shared Styles
   Dark luxury theme: near-black green background, gold/bronze accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700;800&display=swap');

:root {
  --background: #0a0d0b;
  --card: #151916;
  --card-2: #1b201c;
  --foreground: #ffffff;
  --muted: #a3a8a5;
  --primary: #c9a35f;
  --primary-dark: #b08f4f;
  --primary-foreground: #0a0d0b;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
  --destructive: #ef4444;
  --success: #34d399;
  --warning: #fbbf24;
  --info: #60a5fa;
  --radius: 10px;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Barlow', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, .font-heading { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea {
  font-family: var(--font-body);
  background: var(--card-2);
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}
::placeholder { color: var(--muted); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 16px; }
.container-md { max-width: 1024px; margin: 0 auto; padding: 0 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 8px; padding: 12px 22px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px;
  transition: all .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--foreground); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-ghost { background: transparent; color: var(--muted); border: none; }
.btn-ghost:hover { color: var(--foreground); }
.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { background: #dc2626; }
.btn-sm { padding: 7px 14px; font-size: 11px; }
.btn-icon { padding: 8px; border-radius: 8px; background: transparent; border: none; color: var(--muted); display: inline-flex; }
.btn-icon:hover { color: var(--primary); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- cards / surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.card-pad { padding: 24px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.badge-primary { background: rgba(201,163,95,0.12); color: var(--primary); border: 1px solid rgba(201,163,95,0.25); }
.badge-yellow { background: rgba(251,191,36,0.1); color: var(--warning); }
.badge-blue { background: rgba(96,165,250,0.1); color: var(--info); }
.badge-green { background: rgba(52,211,153,0.1); color: var(--success); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--destructive); }
.badge-purple { background: rgba(168,85,247,0.1); color: #c084fc; }
.badge-muted { background: rgba(255,255,255,0.06); color: var(--muted); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,11,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--foreground); }
.logo-text span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.cart-badge { position: relative; }
.cart-count { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mobile-menu-btn { display: none; }
.mobile-nav { display: none; flex-direction: column; gap: 18px; padding: 24px 16px; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav a, .mobile-nav button { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; background: none; border: none; color: var(--foreground); padding: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .desktop-only-action { display: none; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; text-align: center; color: var(--muted); font-size: 12px; }
.social-icons { display: flex; gap: 14px; margin-top: 18px; }
.social-icons a { color: var(--muted); }
.social-icons a:hover { color: var(--primary); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 90px 0 110px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(201,163,95,0.08), transparent 60%); }
.hero-content { position: relative; max-width: 640px; margin: 0 auto; }
.hero-eyebrow { color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.hero h1 { font-size: 52px; line-height: 1.1; margin: 0 0 22px; font-weight: 700; }
.hero h1 span { color: var(--primary); display: block; }
.hero p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .hero h1 { font-size: 36px; } }

/* ---------- sections ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.section-head h2 { font-size: 32px; margin: 0; }
.section-eyebrow { color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 768px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); transition: border-color .2s; text-align: center; }
.cat-card:hover { border-color: rgba(201,163,95,0.3); }
.cat-card svg { color: var(--primary); margin-bottom: 10px; }
.cat-card span { font-size: 14px; font-weight: 500; }

/* ---------- product grid / card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s; position: relative; }
.product-card:hover { border-color: rgba(201,163,95,0.3); }
.product-card .img-wrap { position: relative; aspect-ratio: 1/1; background: var(--card-2); overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .discount-badge { position: absolute; top: 10px; left: 10px; background: var(--destructive); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.product-card .stock-overlay { position: absolute; inset: 0; background: rgba(10,13,11,0.75); display: flex; align-items: center; justify-content: center; }
.product-card .quick-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.product-card .quick-actions button { width: 30px; height: 30px; border-radius: 999px; background: rgba(10,13,11,0.7); border: none; color: var(--foreground); display: flex; align-items: center; justify-content: center; }
.product-card .quick-actions button.active { color: var(--primary); }
.product-card .info { padding: 14px; }
.product-card .brand { font-size: 11px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 4px; }
.product-card .name { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.product-card .price { font-size: 17px; font-weight: 700; color: var(--primary); }
.product-card .price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em; }
tr:hover td { background: rgba(255,255,255,0.015); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.tab-btn { padding: 9px 16px; border-radius: 7px; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tab-btn.active { background: var(--primary); color: var(--primary-foreground); }

/* ---------- modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.modal { background: var(--card); border: 1px solid var(--border-strong); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 26px; }
.modal-wide { max-width: 680px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 19px; }

/* ---------- utility ---------- */
.muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2 { display: flex; gap: 8px; align-items: center; }
.flex-gap-3 { display: flex; gap: 12px; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.py-page { padding: 40px 0 80px; }
.empty-state { text-align: center; padding: 80px 16px; }
.empty-state svg { color: var(--muted); opacity: 0.3; margin-bottom: 16px; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(201,163,95,0.2); border-top-color: var(--primary); border-radius: 999px; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { height: 1px; background: var(--border); border: none; margin: 16px 0; }
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card); border: 1px solid var(--border-strong); border-left: 3px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); animation: slidein .2s ease; min-width: 220px; }
.toast.error { border-left-color: var(--destructive); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.checkbox-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--muted); }
.checkbox-row input { width: 16px; height: 16px; }
.checkbox-row:hover { color: var(--foreground); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--primary); }
