:root {
  --heart: #e63946;
  --heart-dark: #c1121f;
  --green: #2d6a4f;
  --green-light: #40916c;
  --mint: #d8f3dc;
  --cream: #f8f9fa;
  --text: #1d3557;
  --text-muted: #5c6b7a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(29, 53, 87, 0.08);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green);
}

.logo__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--heart), var(--heart-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--heart);
}

.cart-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--mint);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--green);
  transition: background 0.2s;
}

.cart-link:hover {
  background: #b7e4c7;
}

.cart-badge {
  background: var(--heart);
  color: white;
  font-size: 0.75rem;
  min-width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #1b4332 60%, #081c15 100%);
  color: white;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "♥";
  position: absolute;
  right: 8%;
  top: 20%;
  font-size: 12rem;
  opacity: 0.06;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
}

.stat__label {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__price {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero__price h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--heart);
  margin: 0.5rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn--primary {
  background: var(--heart);
  color: white;
}

.btn--primary:hover {
  background: var(--heart-dark);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn--outline:hover {
  background: var(--green);
  color: white;
}

.btn--full {
  width: 100%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__header h2 {
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section__header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--heart);
}

.about-card h3 {
  color: var(--green);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__image {
  height: 200px;
  background: #f1f3f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  font-size: 3rem;
  color: var(--heart);
}

.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.hero__visual img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--green);
}

.product-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card__price {
  font-weight: 700;
  color: var(--heart);
  font-size: 1.1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Program banner */
.program-banner {
  background: linear-gradient(90deg, var(--mint), #b7e4c7);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.program-banner h3 {
  color: var(--green);
}

/* Cart page */
.page-title {
  padding: 2.5rem 0 1rem;
}

.page-title h1 {
  font-size: 2rem;
  color: var(--green);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cart-item__emoji {
  font-size: 2.5rem;
  width: 60px;
  text-align: center;
}

.cart-item__thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__info h3 {
  font-size: 1rem;
  color: var(--green);
}

.cart-item__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: var(--cream);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--mint);
}

.cart-item__price {
  font-weight: 700;
  color: var(--heart);
  min-width: 80px;
  text-align: right;
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
}

.cart-item__remove:hover {
  color: var(--heart);
}

.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-empty p {
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}

/* Checkout */
.checkout-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.checkout-card h2 {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-light);
}

.form-group input.error {
  border-color: var(--heart);
}

.form-error {
  color: var(--heart);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.order-summary {
  border-top: 1px solid #eee;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.summary-row--total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heart);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--mint);
}

/* Thank you */
.thankyou {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 560px;
  margin: 0 auto;
}

.thankyou__icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  color: white;
}

.thankyou h1 {
  color: var(--green);
  margin-bottom: 1rem;
}

.thankyou p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer p {
  line-height: 1.7;
  text-align: center;
}

/* Catalog filter */
.catalog-intro {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.catalog-intro h2 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .nav {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .header__inner {
    flex-wrap: wrap;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
}
