:root {
  --black: #0a0a0a;
  --dark: #111111;
  --silver: #c0c0c0;
  --gold: #d4af37;
  --white: #f5f5f5;
  --muted: #888;
  --accent: #e8e8e8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

/* Top bar */
.top-bar {
  background: #000;
  border-bottom: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #aaa;
}
.socials a { color: #aaa; margin-left: 12px; text-decoration: none; }

/* Nav */
.main-nav {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left a, .nav-right a {
  color: var(--white);
  text-decoration: none;
  margin: 0 12px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-left a.active { border-bottom: 2px solid var(--silver); }
.logo { text-align: center; }
.nt-logo {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--silver);
  text-shadow: 0 0 10px rgba(192,192,192,0.5);
}
.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: #888;
}
.admin-link { color: var(--gold) !important; }
.cart-icon { font-size: 18px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
  pointer-events: none;
}

/* Shop section */
.shop-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: #aaa;
  letter-spacing: 3px;
  margin-bottom: 50px;
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}
.product-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: #1a1a1a;
}
.product-info {
  padding: 20px;
}
.product-category {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin: 8px 0;
}
.product-price {
  font-size: 18px;
  color: var(--silver);
  font-weight: 500;
}
.product-desc {
  font-size: 13px;
  color: #999;
  margin: 10px 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.add-to-cart {
  background: transparent;
  border: 1px solid var(--silver);
  color: var(--white);
  padding: 10px 20px;
  width: 100%;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.add-to-cart:hover {
  background: var(--silver);
  color: #000;
}

.empty-state { grid-column: 1 / -1; text-align: center; color: #666; padding: 40px; }

/* Cart Drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #111;
  border-left: 1px solid #333;
  z-index: 201;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { right: 0; }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #333;
}
.drawer-header button { background: none; border: none; color: white; font-size: 20px; cursor: pointer; }

.cart-items { flex: 1; overflow-y: auto; padding: 15px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #222;
  align-items: center;
}
.cart-item img { width: 70px; height: 90px; object-fit: cover; }
.cart-item-info { flex: 1; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-controls button { width: 24px; height: 24px; background: #222; border: 1px solid #444; color: white; cursor: pointer; }
.remove-btn { background: none; border: none; color: #a00; cursor: pointer; font-size: 16px; }
.empty-cart { color: #666; text-align: center; padding: 40px 0; }

.drawer-footer { padding: 20px; border-top: 1px solid #333; }
.cart-total-row { font-size: 18px; margin-bottom: 15px; text-align: right; }

/* Product Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: #111;
  max-width: 900px;
  width: 100%;
  display: flex;
  gap: 30px;
  position: relative;
  border: 1px solid #333;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
.modal-image { width: 45%; object-fit: cover; max-height: 70vh; }
.modal-body { padding: 40px 30px 30px 0; flex: 1; }
.modal-category { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.modal-name { font-family: 'Playfair Display', serif; font-size: 32px; margin: 10px 0; }
.modal-price { font-size: 22px; color: var(--silver); margin-bottom: 15px; }
.modal-desc { color: #aaa; margin-bottom: 25px; }
.modal-add { width: auto; padding: 12px 40px; }

/* Footer */
footer {
  background: #000;
  border-top: 1px solid #222;
  padding: 60px 40px 30px;
  text-align: center;
  margin-top: 80px;
}
.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.footer-links a { color: #888; text-decoration: none; margin: 0 8px; }
.copyright { color: #555; font-size: 12px; margin-top: 20px; }

/* Admin */
.admin-body { background: #0d0d0d; }
.admin-container { max-width: 1100px; margin: 40px auto; padding: 20px; }
.login-box {
  max-width: 400px;
  margin: 100px auto;
  background: #111;
  padding: 50px 40px;
  border: 1px solid #333;
  text-align: center;
}
.logo-admin {
  font-family: 'Cinzel', serif;
  font-size: 48px;
  color: var(--silver);
  margin-bottom: 10px;
}
.login-box h1 { font-family: 'Playfair Display', serif; margin: 10px 0; }
.login-box input {
  width: 100%;
  padding: 12px;
  margin: 20px 0;
  background: #000;
  border: 1px solid #333;
  color: white;
  font-size: 16px;
}
.login-box button, .btn-primary {
  background: var(--silver);
  color: #000;
  border: none;
  padding: 12px 30px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 1px;
  width: 100%;
}
.hint { font-size: 12px; color: #666; margin-top: 15px; }
.hidden { display: none !important; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}
.btn-secondary {
  background: transparent;
  border: 1px solid #555;
  color: white;
  padding: 8px 20px;
  cursor: pointer;
}
.admin-form-section, .admin-list-section {
  background: #111;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #222;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13px; color: #aaa; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 10px;
  background: #000;
  border: 1px solid #333;
  color: white;
}
.admin-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.admin-product-item {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 15px;
  position: relative;
}
.admin-product-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
}
.delete-btn {
  background: #a00;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .main-nav { flex-direction: column; gap: 10px; padding: 15px; }
  .hero { height: 50vh; }
  .shop-section { padding: 40px 20px; }
  .section-title { font-size: 32px; }
}
