/* ============================================================
   Luigi Cash Amanet — main.css
   Tema: Negru profund + Gold auriu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- VARIABILE -------------------------------------------- */
:root {
  --gold:        #C9A84C;
  --gold-light:  #F0C040;
  --gold-dark:   #8B6914;
  --gold-dim:    rgba(201,168,76,0.15);
  --gold-border: rgba(201,168,76,0.35);
  --black:       #0a0a0a;
  --black-2:     #111111;
  --black-3:     #181818;
  --black-4:     #222222;
  --black-5:     #2a2a2a;
  --white:       #ffffff;
  --text:        #e8e8e8;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --success:     #2ecc71;
  --danger:      #e74c3c;
  --info:        #3498db;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.6);
  --shadow-gold: 0 4px 24px rgba(201,168,76,0.2);
  --transition:  all 0.25s ease;
  --sidebar-w:   35%;
  --content-w:   65%;
  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', sans-serif;
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* --- TYPOGRAPHY -------------------------------------------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--gold); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; }

/* --- LAYOUT SPLIT 65/35 ------------------------------------ */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Conținut principal - scrollabil */
.main-content {
  width: var(--content-w);
  min-height: 100vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* Sidebar Luigi - fix pe dreapta */
.luigi-sidebar {
  width: var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--black-2);
  border-left: 1px solid var(--gold-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 10;
}

.luigi-sidebar .luigi-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom center, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.luigi-sidebar .luigi-photo {
  width: 100%;
  height: 85%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 -20px 40px rgba(201,168,76,0.15));
}

.luigi-sidebar .luigi-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  text-align: center;
}

.luigi-sidebar .luigi-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.luigi-sidebar .luigi-actions {
  position: absolute;
  bottom: 1.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- NAVBAR ------------------------------------------------ */
.navbar {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-border);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.navbar-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  line-height: 1.1;
}
.navbar-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.navbar-cart {
  position: relative;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}
.navbar-cart:hover { background: rgba(201,168,76,0.25); }
.cart-count {
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* --- BUTOANE ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-whatsapp {
  background: #25d366;
  color: white;
}
.btn-whatsapp:hover { background: #1ebe5d; color: white; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* --- SECȚIUNI --------------------------------------------- */
.section { padding: 4rem 2rem; }
.section-sm { padding: 2rem 2rem; }
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* --- HERO -------------------------------------------------- */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--black-2);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--gold-light);
  display: block;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

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

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-border);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- CARDURI AUR ------------------------------------------ */
.gold-prices {
  background: var(--black-3);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: 2.5rem 2rem;
}

.gold-prices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gold-prices-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
}

.gold-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gold-table {
  width: 100%;
  border-collapse: collapse;
}
.gold-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--black-5);
}
.gold-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--black-5);
  font-size: 0.9rem;
}
.gold-table tr:last-child td { border-bottom: none; }
.gold-table tr:hover td { background: var(--gold-dim); }
.gold-karate { font-weight: 700; color: var(--gold); font-family: var(--font-display); }
.gold-price-lei { font-weight: 600; color: var(--white); }
.gold-price-eur { color: var(--text-muted); font-size: 0.85rem; }
.gold-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.gold-tag.nou { background: rgba(46,204,113,0.15); color: #2ecc71; }
.gold-tag.vanzare { background: rgba(52,152,219,0.15); color: #3498db; }
.gold-tag.amanet { background: var(--gold-dim); color: var(--gold); }

/* --- CARDURI SERVICII ------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--gold-border);
  background: var(--black-4);
  transform: translateY(-3px);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--gold);
}
.service-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* --- PRODUSE SHOP ----------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--black-4);
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: var(--gold);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.product-badge.folosit { background: var(--black-5); color: var(--text-muted); }

.product-body { padding: 1rem; }
.product-cat { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.product-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; line-height: 1.3; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--gold); font-family: var(--font-display); }
.product-price-old { font-size: 0.85rem; color: var(--text-dim); text-decoration: line-through; }
.product-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--black-5);
  display: flex;
  gap: 0.5rem;
}

/* --- FILTRU SHOP ------------------------------------------ */
.shop-filters {
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-input, .filter-select {
  background: var(--black-4);
  border: 1px solid var(--black-5);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--gold-border);
}
.filter-input { flex: 1; min-width: 180px; }

/* --- BADGE STARE ------------------------------------------ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-nou { background: rgba(46,204,113,0.15); color: #2ecc71; }
.badge-folosit { background: rgba(136,136,136,0.15); color: #888; }
.badge-recondit { background: rgba(52,152,219,0.15); color: #3498db; }

/* --- CHECKOUT --------------------------------------------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}

.checkout-card {
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.checkout-card h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--black-5);
}

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  background: var(--black-4);
  border: 1px solid var(--black-5);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--gold-border);
  background: var(--black-3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.order-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--black-5);
}
.order-summary-item:last-child { border-bottom: none; }
.order-total {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  border-top: 1px solid var(--gold-border);
  margin-top: 0.5rem;
}

/* --- COȘUL ----------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100vh;
  background: var(--black-2);
  border-left: 1px solid var(--gold-border);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-drawer.open { right: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  display: none;
}
.cart-overlay.open { display: block; }

/* --- FOOTER ----------------------------------------------- */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--gold-border);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
.footer-heading { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--black-5);
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- TOAST ------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--black-3);
  border: 1px solid var(--black-5);
  border-left: 3px solid var(--gold);
  color: var(--text);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  min-width: 280px;
  animation: slideInToast 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideInToast { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 0%; --content-w: 100%; }
  .luigi-sidebar { display: none; }
  .site-wrapper { display: block; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .section { padding: 2.5rem 1rem; }
  .hero { padding: 2rem 1rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .cart-drawer { width: 100%; }
}
