/* ========== GLOBAL STYLES ========== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #000;
  color: #FFD700;
}

h1, h2, h3, h4, h5, h6, p, a, span, label {
  color: #FFD700;
  margin: 0;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #fff;
}

/* ========== NAVBAR ========== */
.navbar {
  background: #000;
  border-bottom: 1px solid #FFD700;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFD700;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: #FFD700;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-bottom: 2px solid transparent;
}

.nav-menu li a:hover {
  border-bottom: 2px solid #FFD700;
}

.cart-icon, .wishlist-icon {
  position: relative;
}

.cart-count, .wishlist-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #FFD700;
  color: #000;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #FFD700;
  margin: 4px 0;
  transition: 0.4s;
}

/* ========== HERO SECTION ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  background: #000;
}

.hero-content {
  max-width: 50%;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.cta-button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid #FFD700;
  background: transparent;
  color: #FFD700;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.cta-button:hover {
  background: #FFD700;
  color: #000;
}

/* ========== FEATURED PRODUCTS & PRODUCT GRID ========== */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #aaa;
}

/* Grid Layout */
.products-showcase, 
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Product Card */
.product-card {
  width: 260px;
  height: 420px;
  border: 1px solid #FFD700;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.4s;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  transform: translateY(-8px);
}

.card-image {
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  transition: 0.3s;
}

.card-image:hover .card-overlay {
  opacity: 1;
}

.quick-view-btn, .wishlist-btn-card {
  background: transparent;
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 0.5rem;
  cursor: pointer;
  transition: 0.3s;
}

.quick-view-btn:hover, .wishlist-btn-card:hover {
  background: #FFD700;
  color: #000;
}

.card-content {
  padding: 1rem;
  text-align: center;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  min-height: 40px;
}

.price {
  font-weight: bold;
  margin: 0.3rem 0;
}

.rating i {
  color: #FFD700;
}

.add-to-cart-btn {
  margin-top: 1rem;
  border: 2px solid #FFD700;
  background: transparent;
  padding: 0.5rem 1rem;
  color: #FFD700;
  cursor: pointer;
  transition: 0.3s;
}

.add-to-cart-btn:hover {
  background: #FFD700;
  color: #000;
}

/* ========== FILTERS & SORTING ========== */
.filters {
  text-align: center;
  margin: 2rem 0;
}

.filter-btn {
  border: 2px solid #FFD700;
  background: transparent;
  color: #FFD700;
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  cursor: pointer;
  transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
  background: #FFD700;
  color: #000;
}

.sort-container {
  margin-top: 2rem;
  text-align: center;
}

.sort-select {
  border: 2px solid #FFD700;
  background: black;
  color: #FFD700;
  padding: 0.5rem;
}

/* ========== CART MODAL ========== */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: #111;
  border-left: 2px solid #FFD700;
  box-shadow: -4px 0 15px rgba(255, 215, 0, 0.4);
  z-index: 2000;
}

.cart-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-header, .cart-footer {
  padding: 1rem;
  border-bottom: 1px solid #FFD700;
}

.cart-header h3 {
  margin: 0;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #FFD700;
  background: transparent;
  color: #FFD700;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.checkout-btn:hover {
  background: #FFD700;
  color: #000;
}

/* ========== LOADING SPINNER ========== */
.loading-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  border: 4px solid #333;
  border-top: 4px solid #FFD700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #000;
    border-top: 1px solid #FFD700;
    padding: 1rem;
  }
  .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin-bottom: 2rem;
  }
}
