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

:root {
  --primary: #0bc6eb;
  --secondary: #134872;
  --background-grad: linear-gradient(135deg, #4faaff 0%, #88e0fa 100%);
  --text-dark: #1a2940;
  --white: #ffffff;
  --card-shadow: 0 10px 40px -10px rgba(0, 80, 120, 0.15);
  --hover-shadow: 0 20px 40px -10px rgba(0, 80, 120, 0.25);
  --radius-lg: 24px;
}

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

.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

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

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

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

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

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

.nav-btn:hover,
.nav-btn.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;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(11, 198, 235, 0.3);
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 198, 235, 0.4);
  background: var(--primary) !important; /* Override gradient from old css */
}

/* ================= MAIN ================= */
.shop-main {
  width: 100%;
  min-height: calc(100vh - 80px);
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.product-grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
  padding: 0 20px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  color: var(--text-dark);
  transition: all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.6);
  opacity: 0;
  animation: cardFadeIn 0.8s ease forwards;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }

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

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 20px;
  background: #f8fbfe;
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-link {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.product-link:hover {
  color: var(--primary);
}

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

.product-card a[href^="product"] {
  display: inline-block;
  padding: 10px 24px;
  background: #edf8ff;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-card a[href^="product"]:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(11, 198, 235, 0.4);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 10px; }
  .nav { gap: 10px; flex-wrap: wrap; justify-content: center; }
}

#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;
}
