@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@900&display=swap');

/* Remove default spacing */
html, body {
  margin: 0;
  padding: 0;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1a; /* dark but not black */
  padding: 20px 40px;
  border-bottom: 2px solid #444;
}

#top-logo .branding {
  color: #00ff99;
  margin: 0;
  padding: 0;
  height: 80px; /* or adjust */
  object-fit: contain;
}
.branding {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #00ff99;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 1px 1px 2px #000;
  margin: 0;
  
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #1d212d;
  color: #333;
  padding: 0 20px 20px 20px; /* top right bottom left */
  line-height: 1.6;
}

nav {
  background-color: #222;
  padding: 15px 0;
  margin-bottom: 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #1abc9c;
}

section {
  margin-bottom: 40px;
}

.product {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background-color: #fff;
  padding: 20px;
  margin: 15px;
  text-align: center;
  width: 220px;
  display: inline-block;
  vertical-align: top;
  transition: transform 0.2s, box-shadow 0.3s;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}

.product h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.product p {
  margin: 5px 0;
  font-size: 14px;
}

.product button {
  margin-top: 12px;
  padding: 10px 16px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.product button:hover {
  background-color: #219150;
}

#cart {
  position: relative;
  top: 0;
  right: 0;
  
  width: 260px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
  position: relative;
  right: 0;
  left: auto;
  margin: 0;
  margin-left: auto;  /* Push to the far right */
  margin-right: 0;
}


#cart-header {
  padding: 10px 15px;
  font-weight: bold;
  background-color: #00ff99;
  color: #000;
  border-bottom: 2px solid #16a085;
  cursor: pointer;
  font-size: 1rem;
}


#cart-details {
  display: none;
  max-height: 300px;
  overflow-y: auto;
  padding: 15px;
}

#cart.open #cart-details {
  display: block;
}


#cart ul {
  list-style: none;
  padding: 10px 15px;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

#cart ul li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}

#cart-total {
  padding: 10px 15px;
  font-weight: bold;
  font-size: 16px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

#checkout-button {
  width: 100%;
  padding: 12px;
  background-color: #2980b9;
  color: white;
  border: none;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

#checkout-button:hover {
  background-color: #20a152;
}


#delivery {
  max-width: 600px;
  margin: 0 auto 40px;
  background-color: white;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 12px;
}

#delivery h2 {
  margin-bottom: 15px;
  text-align: center;
  font-size: 20px;
}

#delivery-form input {
  width: 200%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#delivery-form button {
  width: 100%;
  padding: 12px;
  background-color: #8e44ad;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#delivery-form button:hover {
  background-color: #732d91;
}

footer {
  background-color: #222;
  color: #eee;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 14px;
}

#top-logo {
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px; /* space between video and branding */
  background-color: transparent; /* or any background you want */
}


/* 🔝 Top Logo Style */
#top-logo video {
  width: 10%;
  height: 100px;
  object-fit: cover;
  filter: brightness(1.2);
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 255, 153, 0.3);
  margin: 0;
  padding: 0;
  object-fit: contain;
}


#top-logo h1 {
  font-size: 2rem;
  margin-top: 10px;
  color: #333;
  font-weight: bold;
  text-align: center;
}

/* === CHECKOUT SPECIFIC STYLING === */

#cart-summary {
  background-color: #fff;
  padding: 25px;
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#cart-summary h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #222;
}

#order-summary {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

#order-summary li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

#total-amount {
  font-weight: bold;
  font-size: 18px;
  color: #111;
}

#payment-method {
  background-color: #fff;
  padding: 25px;
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#payment-method h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 20px;
}

#payment-method label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 15px;
  color: #333;
}

.payment-fields {
  max-width: 600px;
  margin: 0 auto 25px;
  background-color: #f9f9f9;
  padding: 20px 25px;
  border: 1px solid #ddd;
  border-radius: 12px;
}

#card-element {
  padding: 10px 12px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 6px;
  margin-top: 10px;
}

#card-errors {
  margin-top: 10px;
  font-size: 14px;
  color: red;
}

#stripe-pay-button {
  margin-top: 20px;
  width: 100%;
}

#payfast-fields button,
#cod-fields button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #f68b1f;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  color: white;
  margin-top: 20px;
  cursor: pointer;
}

#payfast-fields button:hover,
#cod-fields button:hover {
  background-color: #e67e22;
}

#checkout-form {
  max-width: 700px;
  margin: 0 auto;
}

.top-user-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 10px;
  margin-left: auto;
  margin-right: 0;
  padding-right: 40px;
}


.top-user-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #333;
  transition: background-color 0.2s;
}

.top-user-links a:hover {
  background-color: #00ff99;
  color: #000;
}


@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .product {
    width: 90% !important;
    display: block;
    margin: 10px auto;
  }

  #top-logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #top-logo video {
    width: 60%;
    height: auto;
  }

  .branding {
    font-size: 1.6rem;
  }

  .top-user-links {
    position: relative;
    right: auto;
    top: auto;
    justify-content: center;
    margin-top: 10px;
  }

  #cart {
    position: static;
    width: 100%;
    margin-top: 20px;
    box-shadow: none;
    font-size: 13px;
  }

  #cart ul {
    padding: 10px;
  }

  #cart ul li {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }



  #checkout-button {
    font-size: 14px;
  }

  #delivery,
  #payment-method,
  .payment-fields {
    width: 100%;
    max-width: 95%;
    margin: 20px auto;
    padding: 15px;
  }

  #checkout-form {
    width: 100%;
    padding: 10px;
  }

  footer {
    font-size: 12px;
    padding: 15px 10px;
  }
}

#home-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #4CAF50;
  color: white;
  padding: 12px 18px;
  font-size: 18px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 9999;
}
#home-btn:hover {
  background: #45a049;
}

