@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

:root {
  --primary: #2d6cdf;
  --primary-dark: #224ca5;
  --accent: #ffb300;
  --bg: #f8fafc;
  --card-bg: #fff;
  --shadow: 0 2px 16px rgba(40,60,90,0.09);
  --radius: 14px;
  --header-bg: linear-gradient(90deg, #2d6cdf 65%, #9acff9 100%);
}

html, body {
  background: var(--bg);
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #27364a;
  min-height: 100%;
}

body { padding: 0; }

header {
  background: var(--header-bg);
  padding: 32px 0 20px 0;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(44,108,223,0.10);
  border-radius: 0 0 var(--radius) var(--radius);
  position: relative;
}
header h1 {
  font-size: 2.3rem;
  margin: 0 0 4px 0;
  letter-spacing: 1px;
  font-weight: 700;
}
header nav { margin-top: 12px; }
header a {
  color: #fff;
  background: var(--accent);
  padding: 8px 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,179,0,0.07);
  transition: background 0.2s;
  display: inline-block;
}
header a:hover {
  background: #ffd34f;
  color: #1d3557;
}

/* Banner styles */
.main-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0 auto 36px auto;
  max-width: 1100px;
  min-height: 220px;
  background: linear-gradient(90deg, #e8f0ff 60%, #fff 100%);
  box-shadow: 0 2px 18px rgba(44,108,223,0.07);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.banner-img {
  width: 42%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
  display: block;
}
.banner-content {
  padding: 24px 32px;
  flex: 1;
}
.banner-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 0 0 12px 0;
  font-weight: 700;
}
.banner-content p {
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.banner-cta {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 10px 28px;
  font-size: 1.08rem;
  text-decoration: none;
  box-shadow: 0 1px 8px rgba(44,108,223,0.07);
  transition: background 0.18s, transform 0.15s;
}
.banner-cta:hover {
  background: var(--primary-dark);
  transform: scale(1.07);
}

/* Category styles */
.categories {
  max-width: 1100px;
  margin: 0 auto 38px auto;
  text-align: center;
}
.categories h2 {
  color: var(--primary-dark);
  margin-bottom: 18px;
  font-size: 1.35rem;
}
.category-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.category-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 12px 24px;
  text-align: center;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #27364a;
  transition: box-shadow 0.18s, transform 0.14s;
}
.category-card img {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  object-fit: contain;
}
.category-card span {
  font-weight: 600;
}
.category-card:hover {
  box-shadow: 0 8px 32px rgba(44,108,223,0.15);
  transform: translateY(-5px) scale(1.04);
  color: var(--primary);
}

/* Featured products section */
.featured-products {
  max-width: 1100px;
  margin: 0 auto 36px auto;
}
.featured-products h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

/* Product grid and card styles (reuse your previous .grid and .card styles) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
  gap: 28px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 20px 16px;
  transition: transform 0.16s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-7px) scale(1.025);
  box-shadow: 0 8px 32px rgba(44,108,223,0.13);
  z-index: 2;
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(44,108,223,0.06);
  background: #f5f7fb;
  border: 1px solid #e6eaf2;
}
.card h3 {
  font-size: 1.13rem;
  margin: 0 0 8px 0;
  font-weight: 600;
  text-align: center;
  color: #212d42;
  line-height: 1.27;
}
.price {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.actions {
  margin-top: 8px;
  display: flex;
  width: 100%;
  justify-content: center;
}
.actions button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(44,108,223,0.07);
  transition: background 0.17s, transform 0.14s;
}
.actions button:hover {
  background: var(--primary-dark);
  transform: scale(1.06);
}

.promo-banner {
  background: var(--accent);
  color: #1d3557;
  text-align: center;
  padding: 22px 0 18px 0;
  font-size: 1.18rem;
  border-radius: var(--radius);
  margin: 42px auto 0 auto;
  max-width: 950px;
  box-shadow: 0 2px 18px rgba(255,179,0,0.09);
}
.promo-banner h2 {
  margin: 0 0 7px 0;
  font-size: 1.3rem;
}
.promo-banner p {
  margin: 0;
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .main-banner {
    flex-direction: column;
    min-height: unset;
    max-width: 99%;
  }
  .banner-img {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    height: 180px;
  }
  .banner-content {
    padding: 16px 12px;
  }
  .category-row {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 18px 0 12px 0;
  }
  .main-banner {
    margin-bottom: 20px;
  }
  .categories {
    margin-bottom: 20px;
  }
  .featured-products {
    margin-bottom: 18px;
  }
  .promo-banner {
    font-size: 1rem;
    padding: 10px 0 8px 0;
  }
}
