/* ========== SUQSPACE LUXURY DESIGN SYSTEM ========== */
:root {
  --bg-primary: #0D0D0D;
  --bg-secondary: #121212;
  --surface: #1E1E1E;
  --border: #2A2A2A;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-muted: #C5A059;
  --gold-gradient: linear-gradient(135deg, #D4AF37, #AA771C);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  --transition: all 0.3s ease;
  --radius: 12px;
  --glass-bg: rgba(30, 30, 30, 0.7);
  --glass-border: rgba(212, 175, 55, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== LUXURY NAVIGATION ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 5%;
  background: linear-gradient(rgba(13,13,13,0.75), rgba(13,13,13,0.75)), url('../banner.jpeg') center/cover no-repeat;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo-img {
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: center;
}

.cart-icon {
  background: var(--gold-gradient);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  color: #0D0D0D;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--gold-glow);
}
.cart-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* ===== 3D MODEL CONTAINER (kept for structure, but no model loaded) ===== */
#model-container {
  width: 100%;
  height: 420px;
  background: #0D0D0D;
  position: relative;
  overflow: hidden;
}

/* ===== BRAND ABOVE 3D MODEL ===== */
.brand-above-model {
  text-align: center;
  padding: 1rem 0 0;
  background: var(--bg-primary);
}

.brand-name-large {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

/* ===== STICKY CATEGORY BAR ===== */
.sticky-category-bar {
  position: sticky;
  top: 70px;
  z-index: 999;
  background: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  margin: 0;
  width: 100%;
}

.sticky-category-bar .filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 0.75rem;
  justify-content: flex-start;
  padding: 0 0 8px 0;   /* tiny gap between buttons and scrollbar */
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--surface);
}

.sticky-category-bar .filter-tabs::-webkit-scrollbar {
  height: 4px;
}
.sticky-category-bar .filter-tabs::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 10px;
}
.sticky-category-bar .filter-tabs::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: 10px;
}

.sticky-category-bar .filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

/* ===== FILTER BUTTONS (base style) ===== */
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--gold-gradient);
  color: #0D0D0D;
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
}

/* ===== PRODUCT GRID ===== */
.container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
  width: 100% !important;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  width: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover img {
  transform: scale(1.05);
}
.card-body {
  padding: 1.25rem;
}
.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.add-to-cart {
  display: inline-block;
  margin-top: 1rem;
  background: var(--gold-gradient);
  color: #0D0D0D;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--gold-glow);
  width: 100%;
}
.add-to-cart:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 1.8rem;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { color: var(--gold-light); }
.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  transition: var(--transition);
}
.checkout-form input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: var(--gold-glow);
}
.gold-btn {
  background: var(--gold-gradient);
  color: #0D0D0D;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--gold-glow);
  width: 100%;
}
.gold-btn:hover { transform: translateY(-2px); }

/* ===== ORDER SUCCESS CARD ===== */
.success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.success-modal.active {
  opacity: 1;
}

.success-card {
  background: linear-gradient(145deg, #1E1E1E, #141414);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-modal.active .success-card {
  transform: translateY(0) scale(1);
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0D0D0D;
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
  animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 0 45px rgba(212, 175, 55, 0.9); }
}

.success-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.success-message {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.success-card .gold-btn {
  width: auto;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

@media (max-width: 480px) {
  .success-card {
    padding: 2rem 1.2rem;
  }
  .success-title {
    font-size: 1.25rem;
  }
  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 5%;
  }
  .logo-img {
    height: 60px;
    max-width: none;
  }
  .brand-name-large {
    font-size: 1.8rem;
  }

  .sticky-category-bar {
    top: 80px;
  }

  .product-grid {
    gap: 0.8rem;
  }
  .product-card img {
    height: 200px;
  }
  .card-body {
    padding: 0.8rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .card-price {
    font-size: 1.2rem;
  }
  .add-to-cart {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 60px;
    max-width: none;
  }
  .brand-name-large {
    font-size: 1.6rem;
  }
  .product-grid {
    gap: 0.5rem;
  }
  .product-card img {
    height: 150px;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .card-price {
    font-size: 1rem;
  }
  .add-to-cart {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
}