:root {
  --ink: #17211d;
  --muted: #69756f;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --green: #0d7658;
  --green-dark: #084b3a;
  --lime: #d9ef9f;
  --terracotta: #d8754d;
  --line: #dfe4df;
  --shadow: 0 25px 70px rgba(23, 33, 29, .14);
  --radius: 22px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.announcement {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 20px;
  color: #eefaf5;
  background: var(--green-dark);
  font-size: 12px;
  letter-spacing: .02em;
}
.announcement span { color: var(--lime); }

.site-header {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid rgba(223, 228, 223, .75);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px 11px 11px 4px; color: white; background: var(--green); font-size: 16px; }
.desktop-nav { display: flex; gap: 34px; color: #48534e; font-size: 14px; }
.desktop-nav a:hover { color: var(--green); }
.cart-button { justify-self: end; display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink); cursor: pointer; font-weight: 700; }
.cart-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--green-dark); font-size: 12px; }

.hero {
  max-width: 1240px;
  min-height: 650px;
  margin: 0 auto;
  padding: 70px 28px 90px;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.eyebrow { display: inline-block; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.hero h1, .section-heading h2, .story-copy h2, .payment-strip h2, .drawer-header h2, .checkout-heading h2, .success-stage h2 { font-family: Manrope, sans-serif; letter-spacing: -.05em; }
.hero h1 { max-width: 640px; margin: 18px 0 24px; font-size: clamp(48px, 6.5vw, 82px); line-height: .98; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 13px; padding: 0 20px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green); box-shadow: 0 13px 25px rgba(13, 118, 88, .19); }
.button-primary:hover { background: #0a654b; }
.button-block { width: 100%; }
.text-button { border: 0; padding: 10px 0; color: var(--ink); background: none; cursor: pointer; font-weight: 800; }
.text-button span { margin-left: 8px; color: var(--green); }
.trust-row { display: flex; gap: 26px; margin-top: 48px; color: var(--muted); font-size: 12px; }
.trust-row b { color: var(--ink); }
.hero-art { position: relative; min-height: 510px; }
.art-card { position: absolute; overflow: hidden; border-radius: 32px; box-shadow: var(--shadow); }
.art-card img { width: 100%; height: 100%; object-fit: cover; }
.art-card-main { inset: 0 72px 35px 0; background: #dfeadf; transform: rotate(-2deg); }
.art-card-small { width: 215px; height: 240px; right: 0; bottom: 0; background: #efe2d7; transform: rotate(4deg); border: 8px solid var(--paper); }
.floating-note { position: absolute; left: -25px; bottom: 12px; min-width: 180px; padding: 16px 18px; border-radius: 17px; background: var(--lime); box-shadow: 0 18px 45px rgba(35, 55, 42, .18); transform: rotate(2deg); }
.floating-note span { display: block; color: var(--green-dark); font-size: 11px; }
.floating-note strong { display: block; margin-top: 3px; font-family: Manrope, sans-serif; }

.shop-section { padding: 92px max(28px, calc((100vw - 1184px) / 2)); background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.section-heading h2 { margin: 8px 0 0; font-size: 42px; }
.category-filter { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.filter-chip { border: 1px solid #d5d9d2; border-radius: 999px; padding: 9px 14px; color: #536059; background: rgba(255,255,255,.55); cursor: pointer; font-size: 12px; font-weight: 700; }
.filter-chip.active { border-color: var(--green); color: white; background: var(--green); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { position: relative; overflow: hidden; border: 1px solid rgba(213, 217, 210, .9); border-radius: 20px; background: rgba(255, 253, 248, .9); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 45px rgba(34, 51, 42, .10); }
.product-image { aspect-ratio: 1.16; overflow: hidden; background: #e9eee7; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 7px 10px; border-radius: 999px; color: var(--green-dark); background: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.product-info { padding: 20px; }
.product-meta { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.product-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-top: 8px; }
.product-title-row h3 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.02em; }
.product-title-row strong { white-space: nowrap; font-size: 14px; }
.product-info p { min-height: 42px; margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.add-button { width: 100%; height: 43px; border: 1px solid #ccd3ce; border-radius: 11px; color: var(--ink); background: transparent; cursor: pointer; font-weight: 800; }
.add-button:hover { border-color: var(--green); color: var(--green); background: #f5fbf8; }

.story-section { max-width: 1184px; margin: 0 auto; padding: 110px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.story-image { min-height: 570px; overflow: hidden; border-radius: 30px 30px 30px 8px; background: #e8ece7; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-copy h2 { margin: 14px 0 24px; font-size: 52px; line-height: 1.05; }
.story-copy > p { color: var(--muted); line-height: 1.75; }
.architecture-list { margin-top: 30px; border-top: 1px solid var(--line); }
.architecture-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.architecture-list span { color: var(--green); font-size: 12px; font-weight: 800; }
.architecture-list p { margin: 0; color: var(--muted); line-height: 1.5; }
.architecture-list b { color: var(--ink); }

.payment-strip { max-width: 1184px; margin: 0 auto 92px; padding: 45px 50px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-radius: 26px; color: white; background: var(--green-dark); }
.eyebrow.light { color: var(--lime); }
.payment-strip h2 { margin: 5px 0 0; font-size: 42px; }
.payment-methods { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; }
.payment-methods span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-size: 11px; font-weight: 800; }

footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; max-width: 1240px; margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p:last-child { justify-self: end; }
.footer-brand { color: var(--ink); }

.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(13, 25, 20, .42); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); box-shadow: -25px 0 70px rgba(0,0,0,.16); transform: translateX(105%); transition: transform .25s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: start; padding: 28px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 6px 0 0; font-size: 28px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; font-size: 25px; line-height: 1; }
.cart-lines { overflow: auto; padding: 20px 28px; }
.empty-cart { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-cart strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 18px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 13px; background: #edf0eb; }
.cart-line h3 { margin: 2px 0 5px; font-size: 14px; }
.cart-line-price { color: var(--muted); font-size: 12px; }
.quantity-control { display: inline-flex; align-items: center; gap: 11px; margin-top: 10px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; }
.quantity-control button { border: 0; background: none; cursor: pointer; color: var(--green); font-weight: 800; }
.remove-button { border: 0; align-self: start; background: none; color: #9b5b4d; cursor: pointer; font-size: 12px; }
.cart-footer { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 17px; }
.cart-footer p { margin: 8px 0 20px; color: var(--muted); font-size: 12px; }

.checkout-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; }
.checkout-backdrop { position: absolute; inset: 0; background: rgba(10, 18, 15, .58); backdrop-filter: blur(6px); }
.checkout-dialog { position: relative; width: min(1160px, 100%); max-height: calc(100dvh - 44px); overflow: auto; display: grid; grid-template-columns: .82fr 1.18fr; border-radius: 28px; background: white; box-shadow: 0 35px 100px rgba(0,0,0,.26); }
.checkout-close { position: absolute; top: 17px; right: 17px; z-index: 3; }
.checkout-summary { padding: 40px; background: var(--cream); }
.checkout-brand { margin-bottom: 50px; }
.checkout-heading h2 { margin: 9px 0 8px; font-size: 38px; }
.checkout-heading p { margin: 0; color: var(--muted); }
.checkout-order-lines { margin-top: 34px; }
.checkout-order-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid #d9ded7; }
.checkout-order-line img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: white; }
.checkout-order-line h4 { margin: 0 0 2px; font-size: 13px; }
.checkout-order-line span { color: var(--muted); font-size: 11px; }
.checkout-order-line strong { font-size: 12px; }
.checkout-totals { margin-top: 20px; }
.checkout-totals > div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); font-size: 13px; }
.checkout-totals .grand-total { margin-top: 8px; padding-top: 15px; border-top: 1px solid #d9ded7; color: var(--ink); font-size: 18px; }
.secure-note { display: flex; gap: 10px; margin-top: 26px; padding: 14px; border-radius: 13px; color: #3f574c; background: rgba(255,255,255,.7); font-size: 11px; line-height: 1.5; }
.secure-note p { margin: 0; }
.checkout-payment { min-height: 670px; padding: 48px 42px 36px; }
.customer-form { max-width: 520px; margin: 72px auto 0; }
.step-label { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; font-weight: 800; }
.step-label span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 12px; }
.customer-form label { display: block; margin-bottom: 16px; color: #36423c; font-size: 12px; font-weight: 800; }
.customer-form input { width: 100%; height: 50px; margin-top: 7px; border: 1px solid #ccd3cf; border-radius: 12px; padding: 0 14px; outline: none; color: var(--ink); background: white; }
.customer-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(13,118,88,.11); }
.customer-form .button { margin-top: 8px; }
.test-help { text-align: center; color: var(--muted); font-size: 10px; line-height: 1.5; }
.form-error, .payment-message { margin: 10px 0; padding: 12px 13px; border-radius: 10px; color: #8e2e31; background: #fff0f0; font-size: 12px; }
.setup-warning { max-width: 520px; margin: 65px auto 0; padding: 18px; border: 1px solid #f2ce82; border-radius: 14px; color: #6f4e14; background: #fff8e8; }
.setup-warning p { margin: 7px 0 0; font-size: 13px; line-height: 1.5; }
.setup-warning code { padding: 2px 5px; border-radius: 5px; background: rgba(111,78,20,.08); }
.payment-stage { max-width: 680px; margin: 30px auto 0; }
.stage-bar { min-height: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; color: var(--muted); font-size: 11px; }
.back-button { border: 0; background: none; color: var(--green); cursor: pointer; font-weight: 800; }
#rahapay-checkout { min-height: 560px; }
.success-stage { max-width: 500px; margin: 110px auto 0; text-align: center; }
.success-mark { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; color: white; background: var(--green); font-size: 31px; box-shadow: 0 16px 35px rgba(13,118,88,.2); }
.success-stage h2 { margin: 9px 0 14px; font-size: 38px; }
.success-stage p { color: var(--muted); line-height: 1.6; }
.success-reference { margin: 22px 0; padding: 14px; border-radius: 12px; background: var(--cream); font-weight: 800; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 25px; padding: 12px 17px; border-radius: 11px; color: white; background: var(--green-dark); box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
[hidden] { display: none !important; }

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-art { min-height: 500px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-section { grid-template-columns: 1fr; gap: 50px; }
  .story-image { min-height: 450px; }
  .checkout-dialog { grid-template-columns: 1fr; }
  .checkout-summary { padding: 30px; }
  .checkout-brand { margin-bottom: 25px; }
  .checkout-payment { min-height: 620px; padding-top: 20px; }
  .customer-form { margin-top: 25px; }
}

@media (max-width: 650px) {
  .announcement { font-size: 10px; }
  .site-header { height: 68px; padding: 0 18px; }
  .cart-button > span:nth-of-type(1) { display: none; }
  .hero { min-height: auto; padding: 45px 20px 70px; gap: 45px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .text-button { text-align: left; }
  .trust-row { gap: 13px; flex-wrap: wrap; }
  .hero-art { min-height: 370px; }
  .art-card-main { right: 35px; }
  .art-card-small { width: 150px; height: 170px; }
  .floating-note { left: 0; }
  .shop-section { padding: 70px 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading h2 { font-size: 34px; }
  .category-filter { justify-content: start; }
  .product-grid { grid-template-columns: 1fr; }
  .story-section { padding: 75px 18px; }
  .story-copy h2 { font-size: 40px; }
  .payment-strip { margin: 0 18px 70px; padding: 30px; align-items: start; flex-direction: column; }
  .payment-methods { justify-content: start; }
  footer { grid-template-columns: 1fr; padding: 30px 18px; }
  footer p:last-child { justify-self: start; }
  .checkout-modal { padding: 0; align-items: stretch; }
  .checkout-dialog { max-height: 100dvh; border-radius: 0; }
  .checkout-summary { padding: 25px 20px; }
  .checkout-payment { min-height: 580px; padding: 20px 13px; }
  .checkout-heading h2 { font-size: 31px; }
  .checkout-order-lines { margin-top: 20px; }
  .secure-note { display: none; }
  .customer-form { padding: 0 7px; }
  .checkout-close { top: 12px; right: 12px; }
}
