/* ---------- loja ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 231, 209, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--cream-2); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; text-decoration: none; font-weight: 600; color: var(--coal-2); font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--red); }
.cart-btn { position: relative; border: 0; background: var(--red); color: var(--cream); width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.cart-btn .ico svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--coal); color: var(--cream); font-size: .72rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 5px; }

/* hero */
.hero { background: var(--red-deep); color: var(--cream); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; opacity: .12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23000' stroke-width='5'%3E%3Ccircle cx='50' cy='50' r='45'/%3E%3Cpath d='M20 15 80 85M5 40 60 95M40 5 95 60M15 80 80 15M5 60 60 5M40 95 95 40'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 56px 16px 64px; }
.hero-logo { width: min(100%, 420px); margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.25)); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 14px 0 18px; }
.hero p.lead { font-size: 1.12rem; max-width: 46ch; opacity: .92; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn.ghost { color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.hero .btn.ghost:hover { background: rgba(244, 231, 209, .12); }
.open-pill { display: inline-flex; align-items: center; gap: 8px; }
.open-pill i { width: 9px; height: 9px; border-radius: 50%; background: #7CE08F; box-shadow: 0 0 0 4px rgba(124, 224, 143, .25); }
.open-pill.closed i { background: #F2A0A0; box-shadow: 0 0 0 4px rgba(242, 160, 160, .25); }

.section { padding: 56px 0; scroll-margin-top: 70px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--red); }
.sec-head .dots { flex: 1; border-bottom: 2px dotted var(--coal-2); opacity: .35; margin-top: 10px; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: none; }
.cats button { flex: none; border: 2px solid var(--red); background: transparent; color: var(--red); border-radius: 999px; padding: 8px 16px; font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; cursor: pointer; }
.cats button.on { background: var(--red); color: var(--cream); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; overflow: hidden; }
.prod .ph { aspect-ratio: 4 / 3; background: var(--red); display: grid; place-items: center; position: relative; overflow: hidden; }
.prod .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod .ph svg { width: 46%; height: auto; }
.prod .ph .pill { position: absolute; top: 12px; left: 12px; }
.prod .bd { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod h3 { font-size: 1.35rem; }
.prod p { margin: 0; color: var(--coal-2); font-size: .92rem; flex: 1; }
.prod .ft { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--red); }

.build-cta { background: var(--wine); color: var(--cream); border-radius: 22px; padding: 38px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center; overflow: hidden; position: relative; }
.build-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.build-cta .art { justify-self: center; width: 200px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how .card { padding: 24px; }
.how .n { font-family: var(--display); font-size: 2.6rem; color: var(--red); font-weight: 700; }
.how h3 { font-size: 1.3rem; margin: 6px 0 8px; }

/* sobre nós */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.about-art { border-radius: 22px; overflow: hidden; background: var(--cream-3); box-shadow: var(--shadow); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.about-art img { width: 100%; height: 100%; object-fit: cover; }
.about-art img.about-logo { width: 62%; height: auto; object-fit: contain; }
.about-title { font-size: clamp(1.5rem, 3.2vw, 2.2rem); color: var(--wine); margin-bottom: 12px; }
.about p { font-size: 1.04rem; color: var(--coal-2); margin: 0 0 12px; max-width: 60ch; }
.about-info { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.about-info div { display: grid; gap: 2px; }
.about-info .kicker { color: var(--red); font-size: .72rem; }
.about-map { height: 260px; margin-top: 26px; }

/* montador */
.builder { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; padding: 32px 0 60px; }
.grp { margin-bottom: 26px; }
.grp-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.grp-h h3 { font-size: 1.5rem; color: var(--red); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--cream-3); border: 2px solid var(--cream-2); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .12s, background .12s; }
.chip:hover { border-color: rgba(197, 31, 44, .5); }
.chip.on { border-color: var(--red); background: #fff3ef; }
.chip .nm { font-weight: 600; }
.chip .pr { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.chip .tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--cream-2); display: grid; place-items: center; flex: none; }
.chip.on .tick { background: var(--red); border-color: var(--red); color: var(--cream); }
.chip .tick svg { width: 14px; height: 14px; }
.chip.radio .tick { border-radius: 50%; }
.summary { position: sticky; top: 90px; padding: 22px; }
.summary h3 { color: var(--red); font-size: 1.5rem; margin-bottom: 10px; }
.summary ul { list-style: none; padding: 0; margin: 0 0 14px; font-size: .92rem; }
.summary li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--cream-2); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 16px; }
.stack { margin: 6px auto 14px; display: flex; flex-direction: column-reverse; align-items: center; min-height: 40px; }
.stack div { height: 12px; border-radius: 6px; margin-top: -2px; transition: all .2s; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--cream-2); border-radius: 999px; padding: 3px; }
.qty button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--cream-3); cursor: pointer; display: grid; place-items: center; color: var(--red); }
.qty button svg { width: 16px; height: 16px; }
.qty b { min-width: 26px; text-align: center; font-family: var(--display); font-size: 1.1rem; }

/* carrinho */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 420px); background: var(--cream); z-index: 60; box-shadow: -20px 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--red); color: var(--cream); }
.drawer-h h3 { font-size: 1.6rem; }
.drawer-b { flex: 1; overflow: auto; padding: 16px 20px; }
.drawer-f { padding: 16px 20px 22px; border-top: 2px solid var(--cream-2); background: var(--cream-3); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px dashed var(--cream-2); }
.line h4 { font-size: 1.1rem; }
.line small { color: var(--muted); display: block; }
.line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 4px 0; }
.row.big { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--red); }

/* checkout / rastreio */
.page { padding: 32px 0 60px; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); color: var(--red); margin-bottom: 20px; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: start; }
.box { padding: 22px; }
.box + .box { margin-top: 18px; }
.box h3 { font-size: 1.3rem; margin-bottom: 14px; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #fff3ef; border: 2px solid rgba(197,31,44,.25); margin-bottom: 14px; }
.otp { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.otp input { width: 48px; height: 58px; text-align: center; font-family: var(--display); font-size: 1.8rem; padding: 0; }
.demo-code { background: var(--coal); color: var(--cream); border-radius: 10px; padding: 10px 14px; font-size: .88rem; text-align: center; }
.demo-code b { font-family: var(--display); letter-spacing: .3em; font-size: 1.2rem; }
.track-hero { background: var(--red-deep); color: var(--cream); padding: 30px 0; }
.track-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.track-hero .code { font-family: var(--display); letter-spacing: .25em; font-size: 1.1rem; opacity: .85; }
.driver-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.driver-card .av { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: var(--cream); display: grid; place-items: center; flex: none; }
.driver-card .av svg { width: 28px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; text-decoration: none; margin-bottom: 12px; }
.order-row h4 { font-size: 1.2rem; }

/* barra inferior (mobile) */
.tabbar { display: none; }
.footer { background: var(--coal); color: var(--cream); margin-top: 20px; }
.footer-in { display: flex; gap: 26px; align-items: center; padding: 36px 16px 110px; }
.footer-logo { width: 110px; }
.footer h3 { font-size: 1.6rem; }
.footer p { margin: 6px 0; opacity: .85; }

@media (max-width: 860px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; text-align: center; padding: 30px 16px 44px; gap: 16px; }
  .hero-logo { width: min(70vw, 300px); }
  .hero .ctas { justify-content: center; }
  .hero p.lead { margin: 0 auto; }
  .build-cta { grid-template-columns: 1fr; padding: 26px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .build-cta .art { display: none; }
  .how { grid-template-columns: 1fr; }
  .builder, .two { grid-template-columns: 1fr; }
  .summary { position: static; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--cream-3); border-top: 2px solid var(--cream-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; text-decoration: none; color: var(--coal-2); background: none; border: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; padding: 4px 0; }
  .tabbar a.on, .tabbar button.on { color: var(--red); }
  .tabbar span svg { width: 24px; height: 24px; }
  .tabbar button { position: relative; }
  .tabbar b { position: absolute; top: 0; left: 56%; font-size: .68rem; background: var(--red); color: var(--cream); min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-family: var(--body); }
  main { padding-bottom: 74px; }
  .footer-in { flex-direction: column; text-align: center; }
  .builder-bar { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 25; background: var(--red); color: var(--cream); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
}
@media (min-width: 861px) { .builder-bar { display: none; } }
