/* ============ VARIABLES ============ */
:root {
  --black: #000000;
  --gold: #D4AF37;
  --dark-gold: #B8860B;
  --light-gold: #FFD700;
  --white: #FFFFFF;
  --gray: #1A1A1A;
  --light-gray: #2D2D2D;
  --dark-gray: #121212;
}

/* ============ BASE STYLES ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.gold {
  color: var(--gold);
}

/* ============ BACKGROUND ============ */
.fire-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(to right, var(--gold), var(--light-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ LAYOUT ============ */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ============ PRODUCT GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ============ PRODUCT CARD ============ */
.product-card {
  background: var(--gray);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
  border-color: var(--gold);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--gold);
}

.product-code {
  font-size: 0.8rem;
  color: var(--light-gold);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-gold);
  margin-bottom: 1rem;
}

/* ============ BUTTONS ============ */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--gold), var(--light-gold));
  color: var(--black);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* ============ CART STYLES ============ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--gray);
  transition: right 0.3s ease;
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.cart-sidebar.open {
  right: 0;
}

.cart-item {
  display: flex;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ MODALS ============ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--gray);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--gold);
}

.modal.open .modal-content {
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .cart-sidebar {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .product-card {
    max-width: 100%;
  }
}

/* ============ UTILITY CLASSES ============ */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.p-4 {
  padding: 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* ============ NOTIFICATIONS ============ */
.notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  z-index: 1002;
  animation: slideIn 0.3s ease forwards;
}

/* ============ LOADING ============ */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(212, 175, 55, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ LOGO ============ */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.7));
}