@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* General Styles */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  color: #222;
  min-height: 100vh;
}
nav {
  background: #2d2e32;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}
nav .logo {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #6366f1;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}
nav ul li a:hover, nav ul li a.active {
  color: #6366f1;
  background: #fff;
}
main {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.08);
}
/* Hero Banner */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(99,102,241,0.10);
}
.hero-bg {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 120px;
  z-index: 1;
}
.hero h1, .hero p, .hero .btn {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  animation: fadeInDown 1s cubic-bezier(.77,0,.18,1) 0.1s both;
}
.hero p {
  font-size: 1.2rem;
  margin: 0 0 1.2rem 0;
  animation: fadeInUp 1s cubic-bezier(.77,0,.18,1) 0.3s both;
}
.hero .btn {
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.10);
  transition: background 0.2s, transform 0.2s;
  animation: fadeInUp 1s cubic-bezier(.77,0,.18,1) 0.5s both;
}
.hero .btn:hover {
  background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
  transform: translateY(-2px) scale(1.04);
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
/* Product Grid */
#products-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.product-card {
  background: #f4f6fb;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(99,102,241,0.07);
  padding: 1.5rem 1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  opacity: 0;
  animation: fadeInCard 0.7s cubic-bezier(.77,0,.18,1) forwards;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,0.13);
  transform: translateY(-4px) scale(1.03);
}
.product-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}
.product-card h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.product-card p {
  margin: 0.2rem 0 0.7rem 0;
  color: #666;
  font-size: 1rem;
}
.product-card .price {
  font-weight: bold;
  color: #6366f1;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}
.product-card .category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #6366f1;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(99,102,241,0.10);
}
.product-card button {
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.10);
}
.product-card button:hover {
  background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
  transform: scale(1.05);
}
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1.0s; }
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
/* Cart & Checkout */
#cart-section, #checkout-section {
  max-width: 600px;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  padding: 2rem 1.5rem;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e0e7ff;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item img {
  width: 70px;
  border-radius: 6px;
  margin-right: 1.2rem;
  box-shadow: 0 1px 4px rgba(99,102,241,0.08);
}
.cart-item-details {
  flex: 1;
  font-size: 1.05rem;
}
.cart-item-actions button {
  background: #e53935;
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.cart-item-actions button:hover {
  background: #b71c1c;
  transform: scale(1.07);
}
.cart-summary {
  text-align: right;
  margin-top: 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
}
.btn {
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.10);
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
  transform: scale(1.04);
}
.btn:after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 100%;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(.77,0,.18,1), height 0.4s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
}
.btn:active:after {
  width: 200px;
  height: 200px;
}
/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 400px;
  margin: 0 auto;
}
input, select {
  padding: 0.6rem;
  border: 1.5px solid #c7d2fe;
  border-radius: 5px;
  font-size: 1.05rem;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus {
  border: 1.5px solid #6366f1;
  box-shadow: 0 2px 8px rgba(99,102,241,0.10);
}
label {
  font-weight: 500;
  color: #6366f1;
}
/* Profile & Orders */
#profile-section, #orders-section {
  max-width: 600px;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  padding: 2rem 1.5rem;
}
.order-card {
  background: #e0e7ff;
  border-radius: 10px;
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.order-card:hover {
  box-shadow: 0 6px 24px rgba(99,102,241,0.13);
  transform: translateY(-2px) scale(1.01);
}
.order-card h4 {
  margin: 0 0 0.5rem 0;
  color: #6366f1;
}
/* Admin Dashboard */
#admin-section {
  max-width: 900px;
  margin: 0 auto;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.07);
  padding: 2rem 1.5rem;
}
.admin-tabs {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.admin-tabs button {
  background: #2d2e32;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.admin-tabs button.active, .admin-tabs button:hover {
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  transform: scale(1.05);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(99,102,241,0.07);
}
.admin-table th, .admin-table td {
  border: 1px solid #e0e7ff;
  padding: 0.9rem;
  text-align: left;
  font-size: 1.05rem;
}
.admin-table th {
  background: #e0e7ff;
  color: #6366f1;
  font-weight: 600;
}
.admin-table tr:hover {
  background: #f1f5ff;
}
/* Error Page */
.error-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-container {
  text-align: center;
  background: #fff;
  padding: 2.5rem 3.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.10);
}
.error-container h1 {
  color: #e53935;
  margin-bottom: 1.2rem;
  font-size: 2.2rem;
}
@media (max-width: 700px) {
  main {
    padding: 0.7rem;
  }
  #products-section {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: column;
    gap: 0.7rem;
  }
  .admin-tabs {
    flex-direction: column;
  }
  .hero {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
  }
}
/* Section Divider */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  border: none;
  margin: 2.5rem 0 2rem 0;
  border-radius: 2px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(99,102,241,0.13);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.4s, bottom 0.4s;
}
#toast.show {
  opacity: 1;
  bottom: 70px;
  pointer-events: auto;
}
footer {
  background: #2d2e32;
  color: #fff;
  padding: 2rem 0 1.2rem 0;
  text-align: center;
  margin-top: 3rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.footer-social {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.footer-social a {
  color: #fff;
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
}
.footer-social a:hover {
  color: #60a5fa;
  opacity: 1;
  transform: scale(1.15);
}
section {
  transition: opacity 0.4s, transform 0.4s;
}
section[style*="display:none"] {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
@media (max-width: 700px) {
  .footer-content {
    font-size: 0.95rem;
  }
  .footer-social svg {
    width: 18px;
    height: 18px;
  }
} 