html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* Header Structure */
header {
  background: linear-gradient(90deg, rgb(63, 62, 112) 0%, rgba(85, 85, 230, 1) 60%, rgba(139, 189, 199, 1) 100%);
  position: relative;
  width: 100%;
  z-index: 1000;
  display: flex;
  padding: 0;
  margin: 0;
  flex-direction: column;
}

/* Navigation Bar */
.nav-container {
  width: 100%;
  padding: 15px 0;
  margin-right: 0;
  background: linear-gradient(90deg, rgb(63, 62, 112) 0%, rgba(85, 85, 230, 1) 60%, rgba(139, 189, 199, 1) 100%);
  position: relative;
  z-index: 1001;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 20px;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  flex-wrap: wrap;
  overflow-x: hidden;
}

.main-nav a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 18px;
}

.main-nav a:hover {
  color: #d7aa40;
  background: rgba(255, 255, 255, 0.1);
}

/* Logo Section */
.logo {
  width: 100%;
  height: auto;
  min-height: 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 40px 20px;
  overflow: hidden;
}

.logo img {
  max-height: 90px;
  max-width: 90px;
  height: auto;
  width: auto;
  margin: 0 auto;
  border-radius: 4em;
  box-shadow: 8px 5px 8px rgb(159, 180, 63);
  transition: 1s ease;
  object-fit: contain;
  display: block;
}

.logo img:hover{
  padding: 1em;
}

#firstH1 {
  padding: 20px 70px;
  font-size: 2.5em;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-top: 20px;
  transition: all 0.3s ease-in-out;
}

#firstH1:hover {
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
  color: #e9d74f;
}

#a1 {
  font-size: 1.2em;
  color: #2b2b2b;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, #dcb951, #ceccc1);
  transition: all 0.3s;
  display: inline-block;
  margin-top: 10px;
}

#a1:hover {
  background: linear-gradient(135deg, #ece0a3, #dcb951);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Cart Icon */
.cart-link ion-icon {
  font-size: 1.8rem;
  color: white;
}

/* View All Button */
#view-all {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

#view-all:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

/* Auth Links */
.links {
  position: absolute;
  top: 15px;
  right: 30px;
  display: flex;
  gap: 15px;
  z-index: 1002;
}

.links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 20px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.signup-btn {
  background: linear-gradient(135deg, #d6b457, #c69b2a);
  color: #2b2b2b;
  border: 1px solid #d6b457;
}

.login-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.signup-btn:hover {
  background: linear-gradient(135deg, #e8d08a, #d6b457);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
  flex: 1;
  padding: 20px;
}

.products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px;
  overflow-x: hidden;
}

.product {
  background: white;
  border-radius: 10px;
  padding: 10px;
  width: 180px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.product img {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto 10px;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #a68c5b;
}

.buy-btn {
  background-color: #bfa871;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.buy-btn:hover {
  background-color: #a68c5b;
}

.remove-btn {
  background-color: crimson;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-top: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.remove-btn:hover {
  background-color: darkred;
}

.cart-summary {
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.cart-summary p {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

#checkout-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#checkout-btn:hover {
  background-color: #218838;
}

#products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 20px; 
  padding: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.product {
  border: 1px solid #ccc;
  padding: 10px;
  width: 200px;
  text-align: center;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border-radius: 8px;
}

#products-container .product img {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 5px;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* About Page Styles */
.about-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  overflow-x: hidden;
}

.about-hero {
  background: linear-gradient(rgba(63, 62, 112, 0.8), rgba(85, 85, 230, 0.8));
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.mission-cards, .team-members {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  overflow-x: hidden;
}

.mission-card, .team-member {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.mission-card:hover, .team-member:hover {
  transform: translateY(-10px);
}

.mission-card i {
  font-size: 2.5rem;
  color: #d6b457;
  margin-bottom: 15px;
}

.team-member img {
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #d6b457;
  max-height: 200px;
  max-width: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Contact Page Styles */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  overflow-x: hidden;
}

.contact-hero {
  background: linear-gradient(rgba(63, 62, 112, 0.8), rgba(85, 85, 230, 0.8));
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
}

.contact-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  overflow-x: hidden;
}

.contact-card {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-card i {
  font-size: 2rem;
  color: #5555e6;
  margin-bottom: 15px;
}

.contact-form {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.submit-btn {
  background: linear-gradient(135deg, #d6b457, #c69b2a);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(214, 180, 87, 0.4);
}

.social-icons {
  margin: 20px 0;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #d6b457;
}

/* Footer */
footer {
  background: linear-gradient(90deg, rgb(63, 62, 112) 0%, rgba(85, 85, 230, 1) 60%, rgba(139, 189, 199, 1) 100%);
  padding: 20px;
  text-align: center;
  color: white;
}

/* General Image Improvements */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* RESPONSIVE DESIGN - MOBILE */
@media (max-width: 768px) {
  .logo {
    height: auto;
    padding: 20px 10px;
    margin-top: 0;
  }
  
  .logo img {
    max-height: 60px;
    max-width: 60px;
    margin-top: 0;
    margin-right: 0;
  }
  
  #firstH1 {
    font-size: 1.8em;
    padding: 10px 20px;
    margin-top: 15px;
  }
  
  #a1 {
    font-size: 1em;
    margin-top: 10px;
    padding: 6px 12px;
  }
  
  .main-nav ul {
    gap: 10px;
    padding: 0 10px;
  }
  
  .main-nav a {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  .links {
    position: relative;
    top: 0;
    right: 0;
    justify-content: center;
    margin-top: 10px;
    gap: 10px;
  }
  
  .links a {
    font-size: 13px;
    padding: 6px 15px;
  }
  
  main {
    padding: 15px;
  }
  
  #products-container {
    gap: 15px;
    padding: 15px;
  }
  
  .product {
    width: calc(50% - 10px);
    min-width: 150px;
  }
  
  .product img,
  #products-container .product img {
    max-width: 120px;
    height: auto;
  }
  
  .cart-summary {
    padding: 15px;
  }
  
  .cart-summary p {
    font-size: 18px;
  }
  
  #checkout-btn {
    font-size: 16px;
    padding: 10px 20px;
  }
  
  .about-page, .contact-page {
    padding: 20px 15px;
  }
  
  .about-hero, .contact-hero {
    padding: 40px 15px;
  }
  
  .mission-cards, .team-members, .contact-cards {
    flex-direction: column;
    gap: 20px;
  }
  
  .mission-card, .team-member, .contact-card {
    min-width: 100%;
  }
  
  .team-member img {
    max-height: 150px;
    max-width: 150px;
  }
  
  .contact-form {
    padding: 20px;
    margin: 20px 0;
  }
  
  footer {
    padding: 15px;
  }
  
  footer .main-nav ul {
    flex-direction: column;
    gap: 5px;
  }
}

/* SMALL MOBILE (max-width: 480px) */
@media (max-width: 480px) {
  .logo img {
    max-height: 50px;
    max-width: 50px;
  }
  
  #firstH1 {
    font-size: 1.5em;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
  
  .main-nav a {
    font-size: 13px;
    padding: 5px 10px;
  }
  
  .product {
    width: 100%;
    max-width: 280px;
  }
  
  .product img,
  #products-container .product img {
    max-width: 100px;
    height: auto;
  }
  
  .team-member img {
    max-height: 120px;
    max-width: 120px;
  }
  
  .links {
    flex-direction: column;
    gap: 8px;
  }
  
  .buy-btn, .remove-btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* VERY SMALL SCREENS (max-width: 320px) */
@media (max-width: 320px) {
  .logo img {
    max-height: 40px;
    max-width: 40px;
  }
  
  #firstH1 {
    font-size: 1.3em;
    padding: 10px;
  }
  
  .main-nav a {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .product {
    padding: 8px;
  }
  
  .product img,
  #products-container .product img {
    max-width: 80px;
    height: auto;
  }
  
  .team-member img {
    max-height: 100px;
    max-width: 100px;
  }
}