
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background-color: #000;
  color: white;
}
a {
  color: yellow;
  text-decoration: none;
}

/*  Navbar  */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: black;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.logo span {
  color: yellow;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: white;
  font-weight: 500;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: yellow;
}

/*  Layout  */
.main-container {
  display: flex;
  min-height: 90vh;
}

/*  Sidebar  */
.sidebar {
  width: 240px;
  padding: 2rem 1.5rem;
  background-color: #1a1a1a;
  border-right: 2px solid #333;
  color: #eee;
}

.sidebar h3 {
  margin-bottom: 1rem;
  color: yellow;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.4rem;
}

.sidebar .filter-btn {
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sidebar .filter-btn:hover {
  background-color: #333;
  color: #FFD700;
}

.sidebar select {
  margin-bottom: 0.8rem;
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  background-color: #222;
  color:  #FFD700;
  border: 1px solid #555;
  font-size: 0.95rem;
  appearance: none;
}

.filter-btn.active {
  background-color: #FFD700;
  color: black;
  font-weight: bold;
  border-color: #FFD700;
}


/*  Main Content  */
.content-area {
  flex: 1;
  padding: 2rem;
}

#searchInput {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 2rem;
  border: 2px solid #FFD700;
  background-color: #111;
  color: yellow;
  border-radius: 10px;
  font-size: 1rem;
}

#searchInput::placeholder {
  color: #aaa;
}

/*  Product Grid  */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

/*  Product Card  */
.card {
  background: #111;
  border-radius: 12px;
  padding: 1rem;
  width: 220px;
  color: yellow;
  border: 2px solid #FFD700;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.95rem;
  color: #ddd;
  margin: 0.2rem 0;
}

/* Footer */
.footer {
  background: black;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
.footer a {
  color: yellow;
}

/*  Buttons */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  background-color: #FFD700;
  color: black;
  border: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #e6c200;
}

/* Modal base styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}


/*  Responsive  */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #FFD700;
  }

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

  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* My Cart Section */
.cart-container {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.5rem;
  border-top: 1px solid #333;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: white;
}

.cart-item .item-title {
  flex: 1;
}

.cart-item .remove-btn {
  background: none;
  border: none;
  color: red;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 10px;
}

.qty-btn {
  padding: 2px 6px;
  margin-left: 8px;
  background-color: yellow;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cart-total {
  margin-top: 1rem;
  font-weight: bold;
  color: #FFD700;
  font-size: 1rem;
  border-top: 1px dashed #444;
  padding-top: 0.5rem;
}

#cart-count {
  color: #00FFCC; 
  font-weight: bold;
}

.cart-icon {
  width: 20px;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(1.2);
}


/*Checkout Page*/

.checkout-main {
  display: flex;
  min-height: 90vh;
  background-color: #1e1e1e; 
  padding: 1rem;
  gap: 2rem;
  color: white;
}

.items-section {
  flex: 3;
  background-color: #2a2a2a; 
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #333; 
}

.order-title{
  margin-bottom:1rem;
  color:yellow;
}

.checkout-card {
  display: flex;
  background-color: #3a3a3a; 
  border: 1px solid #555;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  gap: 1.5rem;
  align-items: center;
  transition: transform 0.3s ease;
}

.checkout-card:hover {
  transform: scale(1.02);
}

.checkout-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #333;
}

.checkout-info {
  flex: 1;
}

.checkout-info h4 {
  color: #FFD700;
  margin-bottom: 0.3rem;
}

.checkout-info p {
  font-size: 0.9rem;
  color: #ccc;
}

.checkout-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-qty {
  padding: 4px 8px;
  background: yellow;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.checkout-remove {
  padding: 4px 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.sidebar-summary {
  flex: 1;
  background-color: #1a1a1a;
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
}

.summary-box h3 {
  color: yellow;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.summary-box p, .summary-box h4 {
  margin: 0.8rem 0;
  color: #eee;
}

#freeBadge {
  color: #00FF99;
  font-weight: bold;
}

.summary-box h4{
  color:yellow;
}

#place-order {
  margin-top: 1.5rem;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #FFD700;
  border: none;
  color: black;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#place-order:hover {
  background-color: #e6c200;
}


.checkout-btn {
  display: block;
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

/*Shipping form*/
.section-title {
  color: yellow;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.shipping-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shipping-form label {
  font-weight: bold;
  color: #ddd;
}

.shipping-form input,
.shipping-form textarea {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #555;
  background-color: #111;
  color: white;
}


.form-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  gap: 0.8rem;
}

#place-order {
  width: auto;
  align-self: center;
}

.back-btn {
  width: auto;
  align-self: flex-end;
}

@media (max-width: 768px) {
  .checkout-main {
    flex-direction: column;
  }

  .sidebar-summary {
    order: -1;
    width: 100%;
    margin-bottom: 1rem;
  }

  .items-section {
    width: 100%;
  }
}

.section-divider {
  border: none;
  height: 1px;
  background-color: #444;
  margin: 2rem 0 1.5rem;
  width: 100%;
}

.glass {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

