:root {
  --page-width: 600px;
  --content-width: 568px;
  --green: #26de81;
  --ink: #111;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #333; background: #fff; }
body { margin: 0; min-height: 100%; background: #fff; overflow: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell { width: 100vw; height: 100vh; overflow-y: auto; margin: 0 auto; padding: 0 0 22px; background: #fff; }
.page-shell::-webkit-scrollbar { width: 4px; }
.page-shell::-webkit-scrollbar-thumb { background: rgba(85,85,85,.5); border-radius: 2px; }
.block { width: min(100%, var(--page-width)); padding: 8px 16px; margin-left: auto; margin-right: auto; }
.messenger-block { padding-top: 8px; }

.wa-button { width: 100%; min-height: 56px; padding: 16px 76px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--green); font-size: 16px; line-height: 24px; font-weight: 500; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.messenger-block .wa-button { background-image: linear-gradient(rgb(96, 253, 124), rgb(7, 184, 37)); }
.wa-button:hover { transform: translateY(-2px); box-shadow: 0 10px 10px -6px rgba(0,0,0,.24); }
.wa-button:active { transform: translateY(0); }
.wa-icon { width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; color: currentColor; }
.wa-icon svg { width: 19px; height: 19px; display: block; fill: currentColor; }

.content-image, .gallery-image { display: block; width: 100%; height: auto; border-radius: 16px; cursor: zoom-in; }
.image-block { padding-top: 8px; padding-bottom: 8px; }
.gallery-block { padding-top: 8px; padding-bottom: 8px; }
.gallery { width: 100%; overflow: hidden; border-radius: 16px; }
.gallery-viewport { width: 100%; height: auto; overflow: hidden; }
.gallery-dots { height: 30px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.gallery-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #000; opacity: .2; cursor: pointer; }
.gallery-dot.active { opacity: 1; }

.text-block { padding-top: 8px; padding-bottom: 8px; }
.intro-heading, .promo-heading { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.35; font-weight: 400; }
.promo-heading { font-weight: 700; }
.intro-heading strong { font-weight: 700; }
.click-copy { margin: 0 0 28px; text-align: center; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 700; }
.promo-heading { margin: 0; }
.promo-highlight { display: inline; background: #eb3b5a; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 1px; }
.second .promo-highlight, .third .promo-highlight, .final .promo-highlight { background: #fc5c65; }
.final .click-copy { margin-bottom: 28px; }
.final-link .wa-button { justify-content: flex-start; padding: 0; }
.final-link .wa-icon { width: 56px; height: 56px; flex: 0 0 56px; border-right: 1px solid rgba(0,0,0,.08); }
.final-link .wa-label { flex: 1; padding: 0 14px; text-align: center; }
.cart-widget { position: fixed; right: max(16px, calc((100vw - 600px) / 2 + 16px)); bottom: 16px; z-index: 4; width: 48px; height: 48px; display: none; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #333; background: #fff; box-shadow: 0 3px 16px rgba(0,0,0,.2); cursor: pointer; }
.cart-widget.visible { display: flex; }
.cart-glyph { width: 20px; height: 20px; display: block; }
.cart-glyph svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: #eb3b5a; font-size: 11px; line-height: 18px; font-weight: 700; }
.cart-modal { position: fixed; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.58); }
.cart-modal[hidden] { display: none; }
.checkout-card { width: min(600px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 14px; background: #fff; color: #333; }
.checkout-card header { position: relative; height: 50px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; }
.checkout-close { position: absolute; left: 10px; top: 7px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: #333; background: #f2f2f2; font-size: 24px; cursor: pointer; }
.checkout-line { display: flex; align-items: center; gap: 12px; padding: 16px; }
.checkout-product-thumb { width: 70px; height: 70px; flex: 0 0 70px; border-radius: 8px; background: #f7f7fa; object-fit: cover; }
.checkout-product-name { flex: 1; font-weight: 600; }
.checkout-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 400; }
.checkout-qty button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: #f2f2f2; cursor: pointer; }
.checkout-price { font-weight: 600; }
.checkout-total { display: flex; justify-content: space-between; margin: 0 16px; padding: 16px 0; border-top: 1px solid #eee; }
.checkout-next { width: calc(100% - 32px); margin: 0 16px 20px; min-height: 45px; border: 0; border-radius: 10px; color: #fff; background: #111; font-weight: 600; cursor: pointer; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px; }
.checkout-form label { display: flex; flex-direction: column; gap: 6px; color: #555; font-size: 14px; font-weight: 600; }
.checkout-form input { min-height: 44px; padding: 10px 12px; border: 1px solid #c7c7cc; border-radius: 8px; font: inherit; }
.place-order { min-height: 45px; border: 0; border-radius: 10px; color: #fff; background: #111; font-weight: 600; cursor: pointer; }
.place-order:disabled { opacity: .45; cursor: not-allowed; }
.product-modal { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(0,0,0,.6); }
.product-modal[hidden] { display: none; }
.product-modal-card { position: relative; width: min(600px, 100%); max-height: 100vh; overflow: auto; border-radius: 12px; background: #fff; }
.product-modal-image { display: block; width: calc(100% - 32px); margin: 16px; border-radius: 12px; }
.product-modal-close { position: absolute; top: 16px; left: 16px; z-index: 1; width: 38px; height: 38px; padding: 8px; border: 0; border-radius: 50%; color: #fff; background: transparent; font-size: 0; line-height: 1; cursor: pointer; }
.product-modal-close::after { content: '×'; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.5); font-size: 19px; }
.product-modal-copy { padding: 0 24px 24px; }
.product-modal-title { margin: 0 0 20px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.product-modal-action { width: 100%; min-height: 45px; border: 0; border-radius: 10px; color: #fff; background: #111; font-weight: 600; cursor: pointer; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; gap: 0; overflow: visible; border-radius: 0; background: transparent; font-size: 16px; line-height: 24px; font-weight: 500; }
.product-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f7f7fa; }
.product-card span { padding: 8px 6px 0; }

.lightbox { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 16px 80px 30px; background: #333; }
.lightbox[hidden] { display: none; }
.lightbox-image { max-width: min(92vw, 1100px); max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; border: 0; color: #fff; background: transparent; cursor: pointer; }
.lightbox-close { top: 0; right: 0; width: 60px; height: 60px; font-size: 38px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: calc(50% - 28px); font-size: 56px; line-height: 1; padding: 6px 16px; }
.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

@media (max-width: 600px) {
  .wa-button { padding-left: 24px; padding-right: 24px; }
  .lightbox { padding: 60px 0 30px; }
  .lightbox-image { border-radius: 0; max-width: 100%; }
  .lightbox-prev, .lightbox-next { display: none; }
  .cart-widget { right: 14px; bottom: 14px; }
}
