/* ZERO – app-style extras (desktop base + mobile layout) */

/* ---------- shared pieces ---------- */
.m-greeting, .pd-top, .tabbar { display: none; }
.hero-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }

.types { display: flex; gap: 1.1rem; overflow-x: auto; padding: .2rem .1rem .6rem; scrollbar-width: none; }
.types::-webkit-scrollbar { display: none; }
.type { flex: 0 0 auto; display: grid; justify-items: center; gap: .45rem; width: 84px; text-align: center; font-size: .78rem; font-weight: 600; }
.type img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.type:hover img { box-shadow: 0 0 0 2px var(--green); }
.types-section { padding-top: 3rem; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
    body { background: #f7f5f2; }
    body.has-tabbar { padding-bottom: 96px; }

    /* header: logo + icons only, menu lives in the bottom tab bar */
    .site-header { background: rgba(247,245,242,.94); }
    .menu-toggle, .nav-links.main, .nav-actions > .btn, .nav-actions > .user-menu { display: none !important; }
    .nav { height: 62px; }
    .nav-actions { gap: .5rem; }
    .nav-actions .icon-btn { width: 40px; height: 40px; background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
    .nav-actions .icon-btn svg { width: 20px; height: 20px; }

    /* greeting */
    .m-greeting { display: grid; padding-top: .4rem; margin-bottom: .9rem; }
    .m-greeting small { color: var(--muted); font-size: .8rem; }
    .m-greeting strong { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; }

    /* hero: dark photo card with text on top */
    .hero { background: none; overflow: visible; }
    .hero .wrap { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; padding: 0; gap: 0; border-radius: 26px; overflow: hidden; background: #1c2b25; }
    .hero .wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(12,24,19,.88) 78%); z-index: 1; }
    .hero-img, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; object-fit: cover; object-position: top; aspect-ratio: auto; }
    .hero-text { position: relative; z-index: 2; padding: 1.4rem 1.3rem 1.4rem; color: #fff; }
    .hero-kicker { color: rgba(255,255,255,.75); margin-bottom: .6rem; font-size: .66rem; }
    .hero h1 { color: #fff; font-family: var(--body); text-transform: none; font-weight: 700; font-size: 2.05rem; line-height: 1.1; letter-spacing: -.02em; margin-bottom: .7rem; }
    .hero p { color: rgba(255,255,255,.78); font-size: .86rem; margin-bottom: 1.2rem; }
    .hero-actions { display: grid; gap: .6rem; }
    .hero-actions .btn { width: 100%; border-radius: 14px; padding: .95rem; }
    .hero-actions .btn:first-child { background: #fff; color: var(--ink); border-color: #fff; }
    .hero-actions .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }

    /* sections */
    .section { padding: 2rem 0 .4rem; }
    .section-title { font-family: var(--body); text-transform: none; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: var(--ink); }
    .section-head { margin-bottom: 1rem; }
    .section-head .btn { background: #ece9e4; color: var(--ink); border-color: #ece9e4; border-radius: 999px; font-size: .72rem; padding: .35rem .8rem; }
    .types-section { padding-top: 1.6rem; }
    .type { width: 70px; font-size: .72rem; }
    .type img { width: 60px; height: 60px; }

    /* product cards: white rounded tiles */
    .grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
    .card { background: #fff; border-radius: 18px; padding: .45rem; box-shadow: 0 4px 18px rgba(0,0,0,.05); }
    .card-media { border-radius: 14px; border: 0; aspect-ratio: 4 / 5; }
    .card-body { padding: .6rem .35rem .3rem; gap: .25rem; }
    .card-title { font-size: .86rem; font-weight: 600; line-height: 1.3; }
    .card-type { font-size: .62rem; }
    .price { font-size: 1rem; }
    .price del { font-size: .74rem; }
    .swatch { width: 12px; height: 12px; }
    .wish button { width: 28px; height: 28px; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
    .tag { font-size: .6rem; top: 10px; left: 10px; }

    /* home collections scroll sideways */
    .grid.rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; margin: 0 -1.25rem; padding: .2rem 1.25rem .8rem; scrollbar-width: none; }
    .grid.rail::-webkit-scrollbar { display: none; }
    .grid.rail .card { flex: 0 0 60%; scroll-snap-align: start; }

    /* testimonials */
    .t-item { background: #fff; }
    .t-panel { background: #fff; border-radius: 18px; padding: 1.2rem; }

    /* shop page chips scroll in one line */
    .toolbar { flex-direction: column; align-items: stretch; }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
    .chips::-webkit-scrollbar { display: none; }
    .chip { white-space: nowrap; background: #fff; border-color: #fff; }
    .chip.active { background: var(--green); color: #fff; border-color: var(--green); }
    .page-head { padding: 1.4rem 0 1rem; }

    /* footer */
    .site-footer { margin-top: 3rem; background: #efece7; }

    /* bottom tab bar */
    .tabbar { display: flex; position: fixed; z-index: 60; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); gap: .35rem; padding: .45rem; background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
    .tabbar a { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #9a9a9a; }
    .tabbar a svg { width: 22px; height: 22px; }
    .tabbar a.on { background: var(--green); color: #fff; }
    .tabbar .badge { top: 4px; right: 4px; }

    /* ---------- product details ---------- */
    .page-product-show .site-header { display: none; }
    .product { gap: 0; padding: 0; margin: 0 -1.25rem; }
    .product-media { position: relative; border-radius: 0 0 30px 30px; border: 0; aspect-ratio: 4 / 5; }
    .product-media img { object-position: top; }
    .pd-top { display: flex; position: absolute; top: 0; left: 0; right: 0; padding: calc(14px + env(safe-area-inset-top)) 1rem 0; justify-content: space-between; align-items: center; }
    .pd-top span { font-weight: 700; font-size: .95rem; background: rgba(255,255,255,.85); padding: .35rem .9rem; border-radius: 999px; }
    .round-btn { width: 42px; height: 42px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.12); color: var(--ink); }
    .round-btn svg { width: 20px; height: 20px; }
    .product > div:last-child { background: #fff; margin: -1.6rem .9rem 0; position: relative; z-index: 2; border-radius: 26px; padding: 1.3rem 1.2rem 7rem; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
    .product .breadcrumb { display: none; }
    .product h1 { font-size: 1.35rem; font-weight: 700; margin: .2rem 0 .4rem; }
    .product .price { font-size: 1.25rem; color: var(--green); }
    .product .muted { font-size: .86rem; }
    .colour-group .options { background: #f4f2ee; padding: .45rem .6rem; border-radius: 999px; width: fit-content; }
    .opt-color { width: 26px; height: 26px; }
    .opt-size { border-radius: 12px; min-width: 50px; padding: .6rem; }

    /* sticky Add to Cart / Buy Now bar */
    .buy-row { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(0,0,0,.08); flex-wrap: nowrap; gap: .5rem; }
    .buy-row .qty { width: 64px; flex: none; padding: .8rem .5rem; text-align: center; border-radius: 14px; }
    .buy-row .btn { flex: 1; padding: .9rem .5rem; border-radius: 14px; font-size: .9rem; }
    .buy-row .btn-outline { background: #f1efeb; border-color: #f1efeb; color: var(--ink); }
    .page-product-show .section-head { margin-top: 2rem; }

    /* auth and cart cards */
    .auth { background: #fff; border: 0; border-radius: 24px; margin: 1.5rem auto; padding: 1.6rem 1.3rem; }
    .summary, .table-wrap { border: 0; border-radius: 20px; }
}
@media (max-width: 760px) {
    main { overflow-x: clip; }
    .toolbar > form.inline { display: flex; width: 100%; min-width: 0; }
    .toolbar > form.inline .select { width: 100% !important; min-width: 0; }
}
