@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --primary: #0bc6eb;
  --secondary: #134872;
  --accent: #4faaff;
  --background-grad: linear-gradient(135deg, #4faaff 0%, #88e0fa 100%);
  --text-dark: #1a2940;
  --text-light: #4893e2;
  --white: #ffffff;
  --shadow-color: rgba(11, 198, 235, 0.15);
  --card-shadow: 0 10px 40px -10px rgba(0, 80, 120, 0.15);
  --hover-shadow: 0 20px 40px -10px rgba(0, 80, 120, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.92);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  font-family: "Outfit", sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-grad);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ================= HEADER ================= */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary);
  background: rgba(11, 198, 235, 0.08);
}

.cart-btn {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  box-shadow: 0 4px 15px rgba(11, 198, 235, 0.3);
  border-radius: 50px !important;
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 198, 235, 0.4);
}

/* ================= MAIN CONTENT ================= */
.page {
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.button {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 36px;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  background: #fff;
}

/* ================= PRODUCTS ================= */
.listing-section {
  margin-top: 20px;
}

.listing-section h2 {
  font-size: 32px;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-content: center;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.product-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image {
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 15px;
  background: #f8fbfe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.08); /* slight zoom on hover */
}

.product-info {
  padding: 10px 5px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-price {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
}

/* ================= FOOTER ================= */
.footer {
  background: #fff;
  color: var(--text-light);
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

.footer p {
  margin: 8px 0;
  font-weight: 500;
}

.social-links {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-section h1 {
    font-size: 36px;
  }
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 12px 20px;
  }
  .logo img {
    height: 36px;
  }
  .hero-section h1 {
    font-size: 28px;
  }

  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .nav-links li a {
    padding: 6px 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.5); /* slight background for readability if needed */
  }
}

#cart-count {
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 14px;
  margin-left: 8px;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
  min-width: 10px;
  text-align: center;
}
