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

html {
  -webkit-text-size-adjust: 100%;
}

body.message-page {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  min-height: 100vh;
  color: #111;
  background: #1a5c3e;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}

.message-page__bg {
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 20% 10%, rgba(255, 214, 10, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 85% 25%, rgba(255, 214, 10, 0.2) 0%, transparent 50%),
    linear-gradient(165deg, #1a5c3e 0%, #247a4f 38%, #2f8f55 62%, #6b8f2a 88%, #c9a227 100%);
  pointer-events: none;
}

.message-page__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23fff' d='M40 8c-4 12-14 18-14 28 0 8 6 14 14 14s14-6 14-14c0-10-10-16-14-28zm0 50c-6 0-10 4-10 10h20c0-6-4-10-10-10z'/%3E%3C/svg%3E");
  background-size: 72px 72px;
}

.message-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  flex-shrink: 0;
}

.message-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.message-header__back:hover {
  background: rgba(255, 255, 255, 0.3);
}

.message-header__brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
}

.message-header__spacer {
  width: 44px;
  flex-shrink: 0;
}

.message-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 0;
  min-height: 0;
}

.message-hero__visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 420px);
}

.message-hero__bin-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding-right: 56px;
}

.message-hero__bin {
  width: min(260px, 68vw);
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.25));
}

.qty-selector {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}

.qty-selector__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.qty-selector__btn:hover {
  background: rgba(0, 0, 0, 0.38);
}

.qty-selector__btn.is-active {
  background: #fff;
  color: #111;
}

.qty-selector__btn:active {
  transform: scale(0.96);
}

.product-card {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  background: #fff;
  border-radius: 32px 32px 0 0;
  padding: 28px 24px max(28px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.product-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.product-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
}

.product-card__buy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: #ffd60a;
  color: #111;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 214, 10, 0.45);
  transition: background 0.2s ease, transform 0.15s ease;
}

.product-card__buy::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6h15l-1.5 9h-12L6 6z' stroke='%23111' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M6 6L5 3H2' stroke='%23111' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='20' r='1.5' fill='%23111'/%3E%3Ccircle cx='17' cy='20' r='1.5' fill='%23111'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.product-card__buy:hover {
  background: #f5c800;
}

.product-card__buy:active {
  transform: scale(0.98);
}

@media (min-width: 431px) {
  body.message-page {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.15);
  }
}
