:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #1f2a22;
  --muted: #5d6a60;
  --line: #e3ddd1;
  --green: #2f6b45;
  --green-dark: #24543a;
  --green-soft: #e4efe6;
  --wood: #b98552;
  --red: #c8453a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(31,42,34,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247,244,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: Fraunces, serif; font-weight: 700; font-size: 1.15rem; }
.brand em { font-style: normal; color: var(--green); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 560px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 26px; font: 600 1rem Inter, sans-serif; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.cart-count { background: #fff; color: var(--green); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .78rem; }

/* Product */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; } }
.product-media { position: relative; background: linear-gradient(160deg, #eaf1e8, #f3eadc); border-radius: 24px; padding: 32px; aspect-ratio: 1.1; display: grid; place-items: center; }
/* Product photo gallery */
.product-media.gallery { background: none; padding: 0; aspect-ratio: auto; display: block; min-width: 0; }
.g-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; margin: 0; padding: 0; list-style: none; outline: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track:focus-visible { box-shadow: inset 0 0 0 3px var(--green); }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 2; display: grid; place-items: center; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--green-dark); font-size: 1.7rem; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; cursor: pointer; box-shadow: var(--shadow); transition: opacity .2s, background .2s; }
.g-nav:hover { background: #fff; color: var(--green); }
.g-nav:disabled { opacity: 0; pointer-events: none; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-count { position: absolute; bottom: 12px; right: 14px; background: rgba(36,84,58,.85); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.g-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.g-thumb { padding: 0; border: 2px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 2; transition: border-color .2s, opacity .2s; opacity: .7; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.g-thumb:hover { opacity: 1; }
.g-thumb.is-active { border-color: var(--green); opacity: 1; }
@media (max-width: 480px) { .g-nav { width: 36px; height: 36px; font-size: 1.4rem; } .g-thumbs { gap: 8px; } }
.product-media svg { width: 100%; max-width: 440px; height: auto; }
.shadow { fill: rgba(31,42,34,.1); }
.crate-red { fill: var(--red); }
.crate-green { fill: #3f8a5a; }
.crate-grid { fill: none; stroke: rgba(0,0,0,.18); stroke-width: 3; }
.wood { fill: var(--wood); }
.wood-grain { stroke: rgba(0,0,0,.15); stroke-width: 2; }
.cushion { fill: #3b3029; }
.pot { fill: #e9e2d4; }
.leaf { fill: #4c9a62; }
.eco-badge { position: absolute; top: 18px; left: 18px; background: var(--surface); color: var(--green); font-weight: 600; font-size: .82rem; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); }

.eyebrow { color: var(--green); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 6px; }
.product-info h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 14px; }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--green-soft); color: var(--green-dark); font-size: .85rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.price { font-family: Fraunces, serif; font-size: 2rem; font-weight: 700; margin: 0 0 14px; }
.lede { color: var(--muted); margin: 0 0 24px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 50px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--green-soft); }
.qty input { width: 48px; text-align: center; border: 0; font: 600 1rem Inter, sans-serif; background: none; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1; min-width: 180px; }
.microcopy { color: var(--muted); font-size: .9rem; min-height: 1.4em; margin: 10px 0 0; }

/* Features */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid article { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); }
.feature-grid h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .95rem; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.tagline { text-align: center; font-family: Fraunces, serif; font-size: 1.25rem; margin: 40px 0 0; color: var(--green-dark); }

/* Checkout */
.checkout { padding-top: 64px; padding-bottom: 80px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .summary { order: -1; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: Fraunces, serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 14px; }
.opt { color: var(--muted); font-weight: 400; }
input:not([type=radio]):not([type=number]):not([type=checkbox]):not([type=file]), textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font: 400 1rem Inter, sans-serif; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
input.invalid, textarea.invalid { border-color: var(--red); background: #fff6f5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.choices { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.choices.col { flex-direction: column; }
.choice { margin: 0; flex: 1; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 12px 14px 12px 40px; border: 1px solid var(--line); border-radius: 10px; position: relative; background: #fff; }
.choice span::before { content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9b2a4; }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); }
.choice input:checked + span::before { border-color: var(--green); background: radial-gradient(var(--green) 45%, transparent 50%); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.form-error { color: var(--red); font-weight: 500; min-height: 1.4em; margin: 0 0 10px; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; }
@media (max-width: 860px) { .summary { position: static; } }
.summary h3 { font-size: 1.2rem; }
.line-item { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: linear-gradient(160deg, #eaf1e8, #f3eadc); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.line-item .meta { flex: 1; }
.line-item .meta strong { display: block; }
.line-item .meta small { color: var(--muted); }
.remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: 0; }
.totals { margin: 16px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals .grand { color: var(--ink); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.empty { color: var(--muted); }
.empty a { color: var(--green); font-weight: 600; }

/* Dialog */
dialog { border: 0; border-radius: 20px; padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(31,42,34,.45); }
.dialog-body { padding: 32px 28px 28px; text-align: center; }
.check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1.6rem; display: grid; place-items: center; }
.c-details { text-align: left; background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: .92rem; }
.c-details div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.c-details span:first-child { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; text-align: center; }

/* Marketing / Connect */
.connect { background: var(--green-dark); color: #fff; padding: 64px 0; }
.connect .eyebrow { color: #a8d5b5; }
.connect h2 { color: #fff; }
.connect-lede { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 0 28px; }
.connect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .connect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .connect-grid { grid-template-columns: 1fr; } }
.connect-card { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 16px; text-decoration: none; color: #fff; transition: background .15s, transform .15s; min-width: 0; }
.connect-card:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.connect-card > span:nth-child(2) { flex: 1; min-width: 0; }
.connect-card strong { display: block; }
.connect-card small { display: block; color: rgba(255,255,255,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connect-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--green-dark); }
.connect-ico svg { width: 22px; height: 22px; fill: currentColor; }
.connect-ico.fb { background: #1877f2; color: #fff; }
.connect-ico.ig { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.connect-card .arrow { opacity: .7; }
.footer-links { margin: 6px 0 0; }
.footer-links a { color: var(--green); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.dialog-body .microcopy a { color: var(--green); }
.brand, .nav a { white-space: nowrap; }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }
.connect-card small { white-space: normal; overflow-wrap: anywhere; }

/* Shared main footer */
.main-footer { background: var(--green-dark); color: rgba(255,255,255,.8); border: 0; text-align: left; padding: 44px 0 20px; font-size: .95rem; }
.mf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.15); }
@media (max-width: 860px) { .mf-grid { grid-template-columns: 1fr 1fr; } .mf-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .mf-grid { grid-template-columns: 1fr; } }
.main-footer .brand { color: #fff; }
.main-footer .brand em { color: #a8d5b5; }
.main-footer .brand-mark { background: #fff; color: var(--green-dark); }
.mf-tag { margin: 10px 0 4px; font-size: .85rem; }
.mf-loc { margin: 0 0 14px; font-size: .85rem; color: rgba(255,255,255,.65); }
.main-footer nav h2 { font-family: Inter, sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #a8d5b5; margin: 4px 0 12px; }
.main-footer nav a { display: block; color: rgba(255,255,255,.85); text-decoration: none; padding: 3px 0; overflow-wrap: anywhere; }
.main-footer nav a:hover { color: #fff; text-decoration: underline; }
.mf-social { display: flex; gap: 10px; }
.mf-social a { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--green-dark); display: grid; place-items: center; }
.mf-social svg { width: 18px; height: 18px; fill: currentColor; }
.mf-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; font-size: .85rem; }

/* Terms agreement at checkout */
.agree { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); font-weight: 400; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; cursor: pointer; }
.agree a { color: var(--green); font-weight: 600; }
.agree.invalid { border-color: var(--red); background: #fff6f5; }
.agree small { display: block; color: var(--muted); margin-top: 4px; }
.connect-loc { margin: 22px 0 0; color: rgba(255,255,255,.8); font-size: .95rem; }
.ship-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
.ship-note a { color: var(--green); font-weight: 600; }
.btn-outline { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green); margin-bottom: 10px; }
.btn-outline:hover { background: var(--green-soft); }
@media (max-width: 1080px) { .nav a:not(.btn) { display: none; } }

/* Company logo */
.header-inner { height: 72px; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-tag { font-family: Inter, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--green-dark); color: #fff; padding: 3px 9px; border-radius: 999px; margin-left: 4px; }
.main-footer .brand-logo { height: 64px; }
.thumb { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) { .brand-logo { height: 40px; } }
section[id], [id="connect"] { scroll-margin-top: 80px; }
.header-inner { height: 80px; }
.brand-logo { height: 60px; }
@media (max-width: 480px) { .header-inner { height: 68px; } .brand-logo { height: 50px; } }
.main-footer .brand-logo { height: 72px; }

/* Mobile menu (☰) — built by footer.js */
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; flex: none; }
.menu-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--green-dark); transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg, #f7f4ee); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(20, 40, 28, .12); max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-menu .wrap { padding-top: 8px; padding-bottom: 16px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { display: block; padding: 13px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:hover, .mobile-menu a[aria-current] { color: var(--green); }
.mm-label { margin: 18px 4px 2px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 1080px) {
  .menu-toggle { display: flex; }
  .nav { gap: 10px; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }

/* GCash / Maya: QR + proof of payment at checkout */
.wallet-pay { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.wp-step { display: flex; gap: 14px; padding: 18px; }
.wp-step + .wp-step { border-top: 1px dashed var(--line); }
.wp-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.wp-body { flex: 1; min-width: 0; }
.wp-body h4 { margin: 3px 0 12px; font-family: Inter, sans-serif; font-size: 1rem; }
.wp-qr-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.wp-qr { display: block; flex: none; width: 200px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wp-qr img { display: block; width: 100%; height: auto; }
.wp-info { flex: 1; min-width: 180px; }
.wp-amount { margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.wp-amount strong { display: block; font-family: Fraunces, serif; font-size: 1.8rem; color: var(--green-dark); line-height: 1.15; }
.wp-amount small { display: block; margin-top: 2px; }
.wp-acct { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 14px; font-size: .9rem; }
.wp-acct dt { color: var(--muted); }
.wp-acct dd { margin: 0; font-weight: 600; word-break: break-word; }
.wp-tip { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.proof-drop { position: relative; display: block; border: 2px dashed var(--line); border-radius: 12px; padding: 16px; cursor: pointer; background: var(--bg); transition: border-color .2s, background .2s; margin: 0; }
.proof-drop:hover, .proof-drop:focus-within { border-color: var(--green); background: var(--green-soft); }
.proof-drop.invalid { border-color: #c0392b; background: #fdf1ef; }
.proof-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.pd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 0; }
.pd-empty b { color: var(--green-dark); }
.pd-empty b::before { content: "⇪ "; }
.pd-empty small, .pd-preview small { color: var(--muted); font-weight: 400; }
.pd-preview { display: flex; align-items: center; gap: 14px; }
.pd-preview[hidden], .pd-empty[hidden] { display: none; }
.pd-preview img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pd-preview span { display: flex; flex-direction: column; min-width: 0; }
.pd-preview b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 6px 0 0; color: #a3302a; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.wp-ref { margin-top: 14px; }
@media (max-width: 480px) {
  .wp-step { padding: 16px 14px; gap: 10px; }
  .wp-qr { width: 100%; max-width: 260px; margin: 0 auto; }
  .wp-qr-row { flex-direction: column; align-items: stretch; }
}
