:root {
  --bg: #f7f3eb;
  --surface: rgba(255, 255, 255, 0.7);
  --text: #161616;
  --muted: #5d5d5d;
  --line: rgba(22, 22, 22, 0.08);
  --green: #95c11f;
  --pink: #d5456c;
  --blue: #356ccf;
  --yellow: #f0b322;
  --shadow: 0 24px 50px rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 119, 146, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(53, 108, 207, 0.18), transparent 26%),
    radial-gradient(circle at bottom center, rgba(240, 179, 34, 0.2), transparent 32%),
    var(--bg);
}

a {
  text-decoration: none;
}

.hero,
.products,
.payment,
.contact-section {
  padding: 32px 20px 80px;
}

.topbar,
.hero-content,
.product-grid,
.payment-layout,
.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.brand {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.08em;
}

.cart-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.section-label,
.deal-label,
.summary-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 14px 0 18px;
  max-width: 10ch;
}

.hero-text {
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #303030;
}

.hero-actions,
.card-actions,
.payment-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.payment-option:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 14px 28px rgba(22, 22, 22, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  color: var(--text);
}

.deal-card,
.product-card,
.summary-card,
.payment-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.deal-card {
  border-radius: 30px;
  padding: 28px;
  min-height: 250px;
  background:
    linear-gradient(145deg, rgba(149, 193, 31, 0.2), rgba(255, 255, 255, 0.7)),
    rgba(255, 255, 255, 0.75);
}

.deal-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0;
}

.products {
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: 28px;
  overflow: hidden;
}

.image-frame {
  padding: 18px 18px 0;
}

.carousel {
  position: relative;
}

.carousel-track {
  position: relative;
}

.carousel-image {
  width: 100%;
  display: none;
  border-radius: 22px;
  background: #141414;
}

.carousel-image.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(22, 22, 22, 0.72);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(22, 22, 22, 0.18);
  cursor: pointer;
}

.dot.active {
  background: var(--text);
}

.product-content {
  padding: 22px;
}

.product-content h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.subtitle,
.meta,
.summary-note,
.payment-card label {
  color: var(--muted);
}

.pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
}

.old-price {
  text-decoration: line-through;
  color: #8b8b8b;
  font-weight: 700;
}

.strawberry h3 {
  color: var(--pink);
}

.blueberry h3 {
  color: var(--blue);
}

.mango h3 {
  color: var(--yellow);
}

.payment-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.checkout-flow {
  display: grid;
  gap: 24px;
}

.contact-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(149, 193, 31, 0.2)),
    rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.contact-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0 14px;
}

.contact-text {
  max-width: 50ch;
  color: var(--muted);
  line-height: 1.6;
}

.contact-link {
  margin-top: 18px;
  display: inline-flex;
}

.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 20px 32px;
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.48);
}

.summary-card,
.payment-card {
  border-radius: 28px;
  padding: 28px;
}

.cart-items {
  min-height: 160px;
  padding: 8px 0 16px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.remove-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 1.1rem;
}

.step-btn {
  margin-top: 18px;
  width: fit-content;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.payment-option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.payment-option.active {
  background: var(--text);
  color: #fff;
}

.payment-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.payment-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.form-error {
  margin: 0;
  color: #c63d3d;
  font-weight: 700;
}

.payment-form input,
.payment-form select,
.payment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(255, 255, 255, 0.88);
}

.payment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.pay-btn {
  width: fit-content;
}

.hidden {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.45);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(22, 22, 22, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.modal-card h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 8px 0 12px;
}

.modal-text,
.notify-message {
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.notify-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.notify-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 14px;
}

.notify-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 920px) {
  .hero-content,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  h1 {
    max-width: 12ch;
  }

  .image-frame {
    padding: 12px 12px 0;
  }

  .product-content {
    padding: 16px;
  }

  .product-content h3 {
    font-size: 1.3rem;
  }

  .price {
    font-size: 1.3rem;
  }

  .meta {
    font-size: 0.92rem;
  }

  .btn {
    padding: 12px 18px;
  }
}

@media (max-width: 560px) {
  .hero,
  .products,
  .payment,
  .contact-section {
    padding-inline: 14px;
  }

  .products,
  .payment,
  .contact-section {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .site-footer {
    padding: 0 14px 28px;
  }

  .product-grid {
    gap: 14px;
  }

  .carousel-image {
    max-height: 250px;
    object-fit: contain;
  }

  .product-content {
    padding: 14px;
  }

  .product-content h3 {
    font-size: 1.15rem;
  }

  .meta,
  .price,
  .old-price {
    font-size: 0.9rem;
  }

  .btn,
  .payment-option,
  .cart-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .modal-actions .btn {
    width: 100%;
  }
}
