/* ===== EcoGuli public site: layout + components (mobile first) ===== */

.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.page { padding: 1.25rem 0 2.5rem; min-height: 60vh; }
body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

/* Signature shape: one chamfered corner, like laser-cut ply */
.cut-tr { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-tl { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.cut-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* ----- Header ----- */
.announce { background: var(--ink); color: var(--paper); font-size: var(--step--1); }
.announce .wrap { padding: 0.5rem 0; }
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-right: auto; }
.brand img { width: 36px; height: 36px; }
.brand-logo { max-height: 38px; width: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 0.74rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.nav-desktop { display: none; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; gap: 0.25rem; }
  .nav-desktop a { padding: 0.5rem 0.9rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; }
  .nav-desktop a:hover { background: var(--primary-soft); }
  .nav-desktop a[aria-current="page"] { background: var(--primary); }
  .brand { margin-right: 1.5rem; }
  .header-in .spacer { flex: 1; }
}

/* ----- Bottom tab bar (the main navigation on phones) ----- */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(20, 58, 43, 0.06); }
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0.35rem 0.25rem; list-style: none; max-width: 640px; margin-inline: auto; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 0.2rem 0; text-decoration: none; font-size: 0.7rem; font-weight: 600; color: var(--ink-soft); border-radius: var(--r-md); }
.tab svg { width: 26px; height: 26px; padding: 2px 14px; box-sizing: content-box; border-radius: var(--r-pill); transition: background-color 0.2s; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { background: var(--primary); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* ----- Sections ----- */
.section { padding: 2rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: var(--step-2); }
.link-more { font-weight: 600; white-space: nowrap; }
.crumbs { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.75rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-title { margin-bottom: 0.4rem; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }

/* ----- Hero ----- */
.hero { padding: 1.5rem 0 0.5rem; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero h1 { margin-bottom: 0.6rem; max-width: 14ch; font-size: clamp(1.95rem, 8.4vw, 3.4rem); }
body:has(.sticky-cta) .fab { display: none; }
.hero .lede { margin-bottom: 1.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-art { position: relative; justify-self: center; width: min(78vw, 360px); aspect-ratio: 1; }
.hero-art .heart-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cutline { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: trace 2.6s 0.25s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.cutline-dash { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: 0; animation: fadein 0.6s 2.7s forwards; }
.heart-fill { fill: var(--primary); opacity: 0; animation: fadein 0.8s 1.6s forwards; }
.heart-leaf { fill: var(--ink); opacity: 0; animation: fadein 0.6s 2.4s forwards; }
.spark { fill: var(--accent); offset-path: path("M50 90 C 8 60, 6 28, 28 18 C 41 12, 50 21, 50 30 C 50 21, 59 12, 72 18 C 94 28, 92 60, 50 90 Z"); animation: ride 2.6s 0.25s cubic-bezier(0.6, 0, 0.2, 1) forwards; opacity: 1; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes ride { 0% { offset-distance: 0%; opacity: 1; } 96% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cutline { stroke-dashoffset: 0; animation: none; }
  .heart-fill, .heart-leaf, .cutline-dash { opacity: 1; animation: none; }
  .spark { display: none; }
}
@media (min-width: 800px) {
  .hero { padding-top: 3rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
  .hero-art { width: 100%; max-width: 420px; justify-self: end; }
}

/* ----- Service bento (home) ----- */
.bento { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.bento-item { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.1rem 1.2rem; text-decoration: none; min-height: 150px; background: var(--primary-soft); }
.bento-item:hover { background: var(--primary); }
.bento-item h3 { font-size: var(--step-1); margin: 0; }
.bento-item p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.bento-item svg.ico { width: 34px; height: 34px; margin-bottom: auto; }
.bento-shop { grid-column: 1 / -1; background: var(--primary); min-height: 190px; }
.bento-shop:hover { background: var(--primary-mid); }
.bento-bike { background: var(--accent-soft); }
.bento-bike:hover { background: var(--accent); }
.bento-invite { grid-column: 1 / -1; background: var(--ink); color: var(--paper); min-height: 120px; }
.bento-invite p { color: #BFD9C9; }
.bento-invite:hover { background: #0c2a1e; }
.bento-thumbs { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.bento-thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: var(--paper); }
@media (min-width: 800px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); }
  .bento-shop { grid-column: span 2; grid-row: span 2; }
  .bento-bike, .bento-class { grid-column: span 1; }
  .bento-invite { grid-column: span 2; }
}

/* ----- Product grid / cards ----- */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 0.75rem; }
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; } }
@media (min-width: 1000px) { .grid-products { grid-template-columns: repeat(4, 1fr); } }
.pcard { display: block; text-decoration: none; }
.pcard-img { position: relative; aspect-ratio: 1; background: var(--primary-soft); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-body { padding: 0.65rem 0.15rem 0; }
.pcard-name { font-weight: 600; line-height: 1.35; margin: 0 0 0.2rem; font-size: 0.98rem; }
.pcard-meta { font-size: var(--step--1); color: var(--ink-soft); }
.price { font-weight: 700; }
.price-old { text-decoration: line-through; color: var(--ink-soft); font-weight: 400; margin-left: 0.4rem; font-size: 0.9em; }
.tag { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.15rem 0.65rem; border-radius: var(--r-pill); background: var(--accent); font-size: 0.78rem; font-weight: 700; }
.tag-dark { background: var(--ink); color: var(--paper); }

/* chips (filters) */
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.15rem 0 0.75rem; margin: 0 -1rem; padding-inline: 1rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 0.45rem 1rem; border-radius: var(--r-pill); background: var(--surface); border: 1.5px solid #B9D3C3; text-decoration: none; font-weight: 600; font-size: 0.93rem; min-height: 40px; display: inline-flex; align-items: center; }
.chip:hover { background: var(--primary-soft); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toolbar { display: flex; gap: 0.6rem; margin-bottom: 0.75rem; }
.toolbar .input { flex: 1; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 50%; text-decoration: none; font-weight: 600; }
.pager a:hover { background: var(--primary-soft); }
.pager .on { background: var(--ink); color: var(--paper); }

/* ----- Product page ----- */
.pdp { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: start; } .pdp-info { position: sticky; top: calc(var(--header-h) + 1rem); } }
.gallery-main { aspect-ratio: 1; background: var(--primary-soft); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--primary-soft); cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-price { font-size: var(--step-3); font-family: var(--font-head); font-weight: 700; margin: 0.25rem 0 1rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.4rem; }
.facts li { display: flex; gap: 0.6rem; align-items: center; }
.facts svg { width: 20px; height: 20px; flex: none; color: var(--primary-deep); }
.buybox { background: var(--primary-soft); padding: 1.1rem; margin-bottom: 1.25rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #B9D3C3; border-radius: var(--r-pill); background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; border-radius: 50%; font-weight: 700; }
.qty button:hover { background: var(--primary-soft); }
.qty input { width: 3rem; height: 44px; border: 0; text-align: center; font: inherit; font-weight: 700; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.8rem; }

/* ----- Cart / checkout ----- */
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 0.8rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; background: var(--primary-soft); }
.cart-line h3 { font-size: 1rem; margin: 0 0 0.2rem; font-family: var(--font-body); font-weight: 600; }
.cart-note { font-size: var(--step--1); color: var(--ink-soft); background: var(--primary-soft); padding: 0.4rem 0.6rem; border-radius: 10px; margin-top: 0.4rem; }
.summary { background: var(--surface); padding: 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; }
.sum-total { font-weight: 700; font-size: var(--step-1); border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.7rem; }
.checkout-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .checkout-grid { grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; } .checkout-grid .summary { position: sticky; top: calc(var(--header-h) + 1rem); } }
.sticky-cta { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.5rem); z-index: 5; }
@media (min-width: 900px) { .sticky-cta { position: static; } }

/* ----- Info panels ----- */
.panel { background: var(--primary-soft); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.panel h3, .panel h4 { margin-bottom: 0.4rem; }
.panel-plain { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.receipt { display: grid; gap: 0.3rem; }
.receipt dt { font-size: var(--step--1); color: var(--ink-soft); }
.receipt dd { margin: 0 0 0.5rem; font-weight: 600; }
.code-big { font-family: var(--font-head); font-size: var(--step-3); font-weight: 700; letter-spacing: 0.04em; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; margin-bottom: 1rem; }
.done-mark svg { width: 34px; height: 34px; }

/* ----- Bikes ----- */
.bike-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .bike-grid { grid-template-columns: repeat(2, 1fr); } }
.bike { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; padding: 0.8rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); align-items: center; }
.bike img { width: 112px; height: 112px; object-fit: cover; border-radius: 16px; background: var(--primary-soft); }
.bike h3 { font-size: 1.05rem; margin: 0 0 0.25rem; font-family: var(--font-body); }
.prices { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-weight: 600; }
.rate-strip { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.rate { flex: 1 1 140px; background: var(--accent-soft); padding: 0.9rem 1rem; }
.rate b { display: block; font-family: var(--font-head); font-size: var(--step-2); }
.bike-choice { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.8rem; align-items: center; }
.bike-choice img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }

/* ----- Classes ----- */
.class-list { display: grid; gap: 0.9rem; }
@media (min-width: 800px) { .class-list { grid-template-columns: repeat(2, 1fr); } }
.class-card { display: grid; grid-template-columns: 76px 1fr; gap: 1rem; padding: 1rem; background: var(--primary-soft); text-decoration: none; align-items: start; }
.class-card:hover { background: var(--primary); }
.date-chip { display: grid; place-items: center; text-align: center; padding: 0.55rem 0.3rem; background: var(--surface); border-radius: 16px; line-height: 1.1; }
.date-chip b { font-family: var(--font-head); font-size: 1.7rem; display: block; }
.date-chip span { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.class-card h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.class-card p { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }
.class-hero { aspect-ratio: 16 / 9; background: var(--primary-soft); overflow: hidden; margin-bottom: 1.25rem; }
.class-hero img { width: 100%; height: 100%; object-fit: cover; }
.session-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.session-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.93rem; color: var(--ink-soft); }
.meta span { display: inline-flex; gap: 0.35rem; align-items: center; }
.meta svg { width: 17px; height: 17px; }

/* ----- Portfolio / invite ----- */
.past-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .past-grid { grid-template-columns: repeat(4, 1fr); } }
.past { background: var(--surface); }
.past img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--primary-soft); }
.past-body { padding: 0.7rem 0.85rem 0.9rem; }
.past-body h3 { font-size: 1rem; margin: 0 0 0.15rem; font-family: var(--font-body); font-weight: 700; }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }

/* ----- Community gallery (masonry) ----- */
.masonry { columns: 2; column-gap: 0.75rem; }
@media (min-width: 800px) { .masonry { columns: 3; column-gap: 1rem; } }
@media (min-width: 1000px) { .masonry { columns: 4; } }
.mitem { break-inside: avoid; margin-bottom: 0.75rem; display: block; text-decoration: none; background: var(--surface); }
.mitem img { width: 100%; background: var(--primary-soft); }
.mitem-cap { padding: 0.5rem 0.65rem 0.7rem; font-size: 0.9rem; }
.mitem-cap b { display: block; line-height: 1.3; }

/* ----- Posts ----- */
.post-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post { text-decoration: none; display: block; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--primary-soft); }
.post h3 { font-size: var(--step-1); margin: 0.6rem 0 0.2rem; }
.post p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ----- Account ----- */
.list-plain { list-style: none; margin: 0 0 1rem; padding: 0; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.list-plain a { font-weight: 600; }
.more-list { list-style: none; padding: 0; margin: 0; }
.more-list a { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; min-height: 56px; }
.more-list svg { width: 24px; height: 24px; color: var(--primary-deep); }
.auth-box { max-width: 440px; margin-inline: auto; }

/* ----- Footer ----- */
.site-footer { background: var(--primary-soft); padding: 2rem 0 1.5rem; margin-top: 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.site-footer h4 { font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social { display: flex; gap: 0.4rem; margin-top: 0.75rem; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }
.social a:hover { background: var(--primary); }
.copyright { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.85rem; }

/* floating WhatsApp on phones, above the tab bar */
.fab { position: fixed; right: 0.9rem; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 0.8rem); z-index: 35; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(20,58,43,0.25); }
.fab svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .fab { bottom: 1.2rem; right: 1.2rem; } }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-soft); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 0.8rem; color: var(--primary-mid); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.right { margin-left: auto; }
.mt { margin-top: 1.5rem; }
.mb0 { margin-bottom: 0; }
