* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f3f4f6;
  color: #1f2937;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  padding: 60px 20px 80px;
  text-align: center;
  color: white;
}

.hero h1 {
  margin: 0;
  font-size: 30px;
}

.hero p {
  margin-top: 10px;
  opacity: 0.95;
}

.hero-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  background: white;
  padding: 6px;
  border: 4px solid #22c55e;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  margin-bottom: 18px;
}

/* MAIN */
.main {
  max-width: 720px;
  margin: -60px auto 40px;
  padding: 0 16px;
}

/* CARD */
.card {
  background: white;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.offer {
  background: #fef3c7;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  margin-bottom: 16px;
}

/* FORM */
.field-label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
}

.required {
  color: #dc2626;
}

input,
select {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
}

input,
select,
textarea {
  font-size: 16px;
}
/* PRODUCTS */
.product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 12px;
}

.product:last-child {
  border-bottom: none;
}

.fruit-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.product small {
  font-size: 13px;
}

/* QTY */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.qty-control button {
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #111;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-control input {
  width: 54px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-label {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

/* PROMO */
.promo-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}

.promo-row input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  font-size: 14px;
}

.promo-row button {
  width: 95px;
  min-width: 95px;
  padding: 12px 8px;
  font-size: 14px;
  margin-top: 10px;
}

/* TOTAL */
.total-box {
  background: #f0fdf4;
  padding: 16px;
  border-radius: 12px;
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* BUTTONS */
button {
  width: 100%;
  padding: 14px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  margin-top: 15px;
  font-family: inherit;
}

/* TRUST */
.trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.qty-control input {
  pointer-events: none;
  background: white;
  cursor: default;
}

.trust span {
  flex-shrink: 0;
}

/* RESULT */
.result {
  margin-top: 15px;
  padding: 15px;
  background: #f0fdf4;
  border-radius: 10px;
  display: none;
}

/* TERMS */
.terms {
  margin-top: 15px;
}

.terms label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.terms input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0 0;
  flex-shrink: 0;
}

/* FOOTER */
.footer {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin: 30px 0;
}

/* SUCCESS POPUP */
.success-screen {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.success-card {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  animation: pop .25s ease;
}

.success-icon {
  font-size: 54px;
  margin-bottom: 12px;
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.success-subtitle {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.order-summary {
  background: #f9fafb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
  font-size: 14px;
  line-height: 1.8;
}

.pay-btn {
  background: #22c55e;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.close-btn {
  margin-top: 12px;
  background: none;
  color: #6b7280;
}

@keyframes pop {
  from {
    transform: scale(.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* MOBILE */
@media screen and (max-width: 600px) {
  body {
    background: #f3f4f6;
    font-size: 16px;
  }

  .hero {
    padding: 45px 12px 65px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero-logo {
    width: 95px;
    height: 95px;
  }

  .main {
    width: 100%;
    max-width: 100%;
    margin: -35px 0 30px 0;
    padding: 0 10px;
  }

  .card {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    margin: 0 0 12px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  h3 {
    font-size: 22px;
    margin-top: 0;
  }

  .field-label,
  .fruit-name {
    font-size: 17px;
  }

  input,
  select {
    font-size: 16px;
    padding: 14px;
    border-radius: 14px;
  }

  .product {
    display: block;
    padding: 16px 0;
  }

  .product small {
    font-size: 13px;
    display: block;
    margin-top: 3px;
  }
  
  .qty-control {
    margin-top: 10px;
    justify-content: flex-start;
    gap: 8px;
  }

  .qty-control button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 22px;
    border-radius: 12px;
  }

  .qty-control input {
    width: 64px;
    height: 42px;
    font-size: 17px;
  }

  .qty-label {
    font-size: 14px;
  }

  .promo-row {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .promo-row input {
    flex: 1;
    min-width: 0;
  }

  .promo-row button {
    width: 90px;
    min-width: 90px;
    padding: 12px 8px;
    font-size: 14px;
  }

  .total-box {
    font-size: 18px;
    padding: 16px;
    line-height: 1.6;
  }

  #placeOrderBtn {
    font-size: 18px;
    padding: 16px;
    border-radius: 14px;
  }

 .trust {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  white-space: nowrap;
  overflow-x: auto;
}

.trust span {
  flex-shrink: 0;
}

  .success-card {
    padding: 24px 18px;
  }

  .success-title {
    font-size: 22px;
  }
}