:root {
  --ink: #14181f; --green: #2f9e44; --green-d: #26823a; --orange: #ef8f2a;
  --red: #e03131; --navy: #16233f; --muted: #6b7280; --line: #ececec; --bg: #f4f5f6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; background: #fff; }

/* Announcement bar */
.announce { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; text-align: center; padding: 9px 16px; letter-spacing: .02em; }
.announce b { color: #ffd43b; }

/* Header */
header { display: flex; align-items: center; gap: 22px; padding: 18px 26px; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; padding: 9px; flex: none; }
.hamburger span { display: block; height: 3px; width: 100%; background: var(--ink); border-radius: 3px; transition: transform .25s, opacity .25s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 50px; width: auto; border-radius: 10px; display: block; }
.searchbar { flex: 1; display: flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; max-width: 620px; }
.searchbar input { flex: 1; border: none; padding: 12px 18px; font-size: 14px; outline: none; font-family: inherit; }
.searchbar button { background: var(--ink); color: #fff; border: none; padding: 0 24px; font-size: 15px; cursor: pointer; font-weight: 700; }
.header-icons { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.header-icons .ic { display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--muted); gap: 3px; cursor: pointer; }
.header-icons .ic .sym { font-size: 20px; color: var(--ink); }
.header-icons .cart { position: relative; }
.header-icons .cart .badge-c { position: absolute; top: -6px; right: -10px; background: var(--red); color: #fff; border-radius: 50%; font-size: 10px; padding: 1px 6px; font-weight: 800; }

/* Nav */
nav { display: flex; gap: 2px; background: var(--ink); padding: 0 26px; overflow-x: auto; }
nav a { padding: 14px 18px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid transparent; }
nav a:hover, nav a.active { color: #7fd694; border-bottom-color: var(--green); }
nav a.hot { color: #ffd43b; }

/* Hero carousel */
.hero { position: relative; margin: 22px 26px; border-radius: 18px; overflow: hidden; }
.slides { position: relative; height: 340px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; display: flex; align-items: center; padding: 0 56px; }
.slide.on { opacity: 1; }
.slide.navy { background: linear-gradient(115deg, #14181f 0%, #2a3550 100%); }
.slide.verde { background: linear-gradient(115deg, #2f9e44 0%, #1b6e30 100%); }
.slide.laranja { background: linear-gradient(115deg, #ef8f2a 0%, #d9721a 100%); }
.slide .txt { color: #fff; max-width: 560px; z-index: 2; }
.slide .tag { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.slide h1 { font-size: 40px; font-weight: 900; line-height: 1.05; margin-bottom: 12px; }
.slide p { font-size: 16px; opacity: .92; margin-bottom: 22px; max-width: 420px; }
.slide .btn { display: inline-block; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; padding: 14px 30px; border-radius: 8px; text-transform: uppercase; letter-spacing: .03em; }
.slide::after { content:''; position:absolute; right:-60px; top:-60px; width:280px; height:280px; background:rgba(255,255,255,.08); border-radius:50%; }
.dots { position: absolute; bottom: 16px; left: 56px; display: flex; gap: 8px; z-index: 5; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; width: 26px; border-radius: 5px; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; background: rgba(255,255,255,.9); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--ink); font-weight: 800; }
.arrow.prev { left: 14px; } .arrow.next { right: 14px; }

/* Trust seals */
.seals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; margin: 0 26px 26px; overflow: hidden; }
.seals .s { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-right: 1px solid var(--line); }
.seals .s:last-child { border-right: none; }
.seals .s .sym { font-size: 26px; }
.seals .s .tt { font-size: 13px; font-weight: 800; }
.seals .s .ts { font-size: 11.5px; color: var(--muted); }

/* Category pills */
.cats { display: flex; gap: 12px; padding: 0 26px 26px; overflow-x: auto; }
.cats .c { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 108px; }
.cats .c .circ { width: 88px; height: 88px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 38px; border: 2px solid transparent; transition: border-color .2s; }
.cats .c:hover .circ { border-color: var(--green); }
.cats .c .lb { font-size: 12.5px; font-weight: 700; text-align: center; }

/* Section head */
.sec-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 16px; }
.sec-head h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.sec-head h2 .bar { width: 5px; height: 24px; background: var(--green); border-radius: 3px; }
.sec-head a { font-size: 13px; font-weight: 800; color: var(--green); text-decoration: none; text-transform: uppercase; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 26px 30px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; position: relative; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-3px); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badges .b { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 6px; color: #fff; width: fit-content; }
.badges .b.disc { background: var(--red); }
.badges .b.free { background: var(--green); }
.card .fav { position: absolute; top: 12px; right: 12px; font-size: 16px; color: #c9ced6; z-index: 2; cursor: pointer; }
.card .ph { height: 190px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #cbd2d9; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; }
.card .body { padding: 14px 15px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.card .cat { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card .name { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin: 5px 0 8px; min-height: 37px; overflow: hidden; color: var(--ink); }
.card .price-line { display: flex; align-items: baseline; gap: 8px; margin: auto 0 12px; }
.card .price { font-size: 20px; font-weight: 900; color: var(--red); }
.card .price.plain { color: var(--ink); }
.card .old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card .add { width: 100%; background: var(--ink); color: #fff; border: none; border-radius: 9px; padding: 11px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: .03em; transition: background .2s; text-align: center; display: block; }
.card .add:hover { background: var(--green); }
.card .out { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; }

/* Empty state */
.empty-shop { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: 14px; }
.empty-shop .big { font-size: 46px; margin-bottom: 12px; }
.empty-shop .t { font-size: 17px; font-weight: 800; color: var(--ink); }

/* Promo band */
.band { margin: 4px 26px 30px; background: var(--ink); border-radius: 16px; padding: 34px 44px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; position: relative; overflow: hidden; }
.band::after { content:''; position:absolute; right:-40px; bottom:-60px; width:220px; height:220px; background:rgba(47,158,68,.25); border-radius:50%; }
.band .z { position: relative; z-index: 2; }
.band h3 { font-size: 26px; font-weight: 900; text-transform: uppercase; }
.band p { font-size: 14px; opacity: .9; margin-top: 6px; }
.band .code { position: relative; z-index: 2; background: rgba(255,255,255,.12); border: 2px dashed #7fd694; border-radius: 10px; padding: 14px 26px; font-size: 20px; font-weight: 900; letter-spacing: .12em; color: #7fd694; }

/* Store banner */
.store-banner { margin: 0 26px 30px; border-radius: 16px; overflow: hidden; position: relative; }
.store-banner img { width: 100%; height: 300px; object-fit: cover; display: block; }
.store-banner .ov { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,31,.85) 0%, rgba(20,24,31,.5) 48%, rgba(20,24,31,0) 78%); display: flex; flex-direction: column; justify-content: center; padding: 0 46px; color: #fff; }
.store-banner .ov .st { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7fd694; margin-bottom: 8px; }
.store-banner .ov h3 { font-size: 30px; font-weight: 900; line-height: 1.1; margin-bottom: 10px; max-width: 440px; }
.store-banner .ov p { font-size: 14px; color: rgba(255,255,255,.9); max-width: 380px; margin-bottom: 18px; }
.store-banner .ov .btn { display: inline-block; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; padding: 13px 28px; border-radius: 8px; width: fit-content; text-transform: uppercase; }

/* Newsletter */
.news { background: var(--bg); border-radius: 16px; margin: 0 26px 34px; padding: 34px; text-align: center; }
.news h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; }
.news p { font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.news form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.news input { flex: 1; border: 2px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 14px; font-family: inherit; outline: none; }
.news button { background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 0 26px; font-size: 14px; font-weight: 800; cursor: pointer; text-transform: uppercase; }

/* Page title (category/search) */
.page-title { padding: 26px 26px 6px; }
.page-title .crumb { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 6px; }
.page-title h1 { font-size: 28px; font-weight: 900; }
.page-title .count { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 600; }

/* Footer */
footer { background: var(--ink); color: #cbd2d9; padding: 44px 26px 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer .fb .logo2 img { height: 62px; width: auto; border-radius: 10px; display: block; margin-bottom: 12px; }
footer .fb p { font-size: 12.5px; line-height: 1.7; color: #9aa4b0; max-width: 260px; }
footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 12px; }
footer ul { list-style: none; }
footer ul li { font-size: 12.5px; margin-bottom: 8px; color: #9aa4b0; }
footer ul li a:hover { color: #7fd694; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 18px; display: flex; justify-content: space-between; font-size: 11.5px; color: #7c8797; flex-wrap: wrap; gap: 12px; }
.foot-bottom .pay { display: flex; gap: 8px; }
.foot-bottom .pay span { background: rgba(255,255,255,.1); border-radius: 5px; padding: 3px 8px; font-weight: 700; font-size: 10px; color: #cbd2d9; }
.made { text-align: center; font-size: 11px; color: #9aa4b0; padding: 14px; background: #0b1018; }
.made a { color: var(--orange); text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
  .seals { grid-template-columns: 1fr 1fr; }
  .seals .s:nth-child(2) { border-right: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .slide { padding: 0 32px; }
  .slide h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .announce { font-size: 11px; }
  header { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .searchbar { order: 3; flex-basis: 100%; max-width: none; }
  .header-icons { gap: 16px; }
  .hamburger { display: flex; }
  .logo img { height: 42px; }
  nav { display: none; flex-direction: column; padding: 0; gap: 0; }
  nav.open { display: flex; }
  nav a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { margin: 16px; }
  .slides { height: 300px; }
  .slide { padding: 0 24px; }
  .slide h1 { font-size: 25px; }
  .slide p { font-size: 14px; }
  .dots { left: 24px; }
  .seals { margin: 0 16px 20px; }
  .cats { padding: 0 16px 20px; }
  .sec-head { padding: 6px 16px 14px; }
  .grid { gap: 12px; padding: 0 16px 24px; }
  .card .ph { height: 160px; }
  .band { margin: 4px 16px 24px; padding: 26px 24px; flex-direction: column; text-align: center; }
  .store-banner { margin: 0 16px 24px; }
  .store-banner img { height: 230px; }
  .store-banner .ov { padding: 0 24px; background: linear-gradient(90deg, rgba(20,24,31,.9) 0%, rgba(20,24,31,.72) 60%, rgba(20,24,31,.4) 100%); }
  .store-banner .ov h3 { font-size: 22px; }
  .news { margin: 0 16px 26px; padding: 26px 20px; }
  .news form { flex-direction: column; }
  .news button { padding: 12px; }
  .page-title { padding: 20px 16px 4px; }
  footer { padding: 34px 16px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 380px) {
  .seals { grid-template-columns: 1fr; }
  .seals .s { border-right: none; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---- Product detail page ---- */
.prod-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 16px 26px 30px; }
.gallery .main { border: 1px solid var(--line); border-radius: 14px; height: 420px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.gallery .main .emoji { font-size: 130px; }
.gallery .main .disc-tag { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 8px; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs > img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; padding: 6px; }
.gallery .thumbs > img.on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(47,158,68,.2); }
.pinfo .cat { color: var(--muted); text-transform: uppercase; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
.pinfo h1 { font-size: 28px; font-weight: 900; margin: 6px 0 16px; line-height: 1.15; }
.pinfo .price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.pinfo .price-row .now { font-size: 32px; font-weight: 900; color: var(--red); }
.pinfo .price-row .now.plain { color: var(--ink); }
.pinfo .price-row .was { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pinfo .price-row .pct { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px; }
.pinfo .iva { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.pinfo .desc-short { font-size: 15px; color: #333; line-height: 1.6; margin-bottom: 20px; }
.pinfo .stock { font-size: 13px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 7px; }
.pinfo .stock.in { color: var(--green-d); } .pinfo .stock.out { color: var(--red); }
.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; border: none; background: var(--bg); font-size: 18px; cursor: pointer; font-family: inherit; }
.qty input { width: 54px; border: none; text-align: center; font-size: 15px; font-weight: 700; font-family: inherit; outline: none; }
.btn-cart { flex: 1; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 15px; font-size: 15px; font-weight: 800; text-transform: uppercase; cursor: pointer; letter-spacing: .03em; font-family: inherit; }
.btn-cart:hover { background: var(--green-d); }
.btn-cart:disabled { background: var(--muted); cursor: not-allowed; }
.pmeta { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }
.pmeta div { margin-bottom: 6px; }
.prod-desc { padding: 10px 26px 34px; }
.prod-desc h2 { font-size: 18px; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.prod-desc h2 .bar { width: 5px; height: 22px; background: var(--green); border-radius: 3px; }
.prod-desc p { font-size: 14.5px; line-height: 1.7; color: #333; white-space: pre-line; max-width: 900px; }
@media (max-width: 900px) {
  .prod-page { grid-template-columns: 1fr; gap: 24px; }
  .gallery .main { height: 320px; }
}
@media (max-width: 560px) {
  .prod-page { padding: 12px 16px 24px; }
  .prod-desc { padding: 6px 16px 26px; }
}

/* ---- Flash messages ---- */
.flash-loja { margin: 12px 26px 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; }
.flash-loja.ok { background: #e4f4e8; color: var(--green-d); border: 1px solid #bfe6cb; }
.flash-loja.erro { background: #fde8e8; color: #b02525; border: 1px solid #f5c6c6; }

/* ---- Cart page ---- */
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding: 10px 26px 34px; align-items: start; }
.cart-row { display: flex; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; align-items: center; }
.cart-row .img { width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; font-size: 34px; flex: none; }
.cart-row .img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .ct { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.cart-row .info .nm { font-weight: 700; font-size: 14.5px; margin: 2px 0; display: block; color: var(--ink); }
.cart-row .info .pu { font-size: 12.5px; color: var(--muted); }
.cart-row .qty { flex: none; }
.cart-row .qty input { width: 46px; }
.cart-row .lt { font-weight: 900; font-size: 16px; width: 92px; text-align: right; flex: none; }
.cart-row .rm { background: none; border: none; color: #c9ced6; cursor: pointer; font-size: 20px; flex: none; padding: 4px; font-family: inherit; }
.cart-row .rm:hover { color: var(--red); }
.summary { border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: sticky; top: 16px; }
.summary h3 { font-size: 16px; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
.summary .line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: #333; }
.summary .line.total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 20px; font-weight: 900; color: var(--ink); }
.summary .free-note { font-size: 12px; color: var(--green-d); font-weight: 700; margin: 4px 0 14px; }
.summary .miss-note { font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.summary .btn-checkout { display: block; width: 100%; text-align: center; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 15px; font-weight: 800; text-transform: uppercase; cursor: pointer; font-size: 14px; margin-top: 6px; font-family: inherit; letter-spacing: .03em; }
.summary .btn-checkout:hover { background: var(--green-d); }
.summary .cont { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.summary .cont:hover { color: var(--green-d); }
.cupao-form { display: flex; gap: 8px; margin-bottom: 16px; }
.cupao-form input { flex: 1; border: 1px dashed #b9c0ca; border-radius: 9px; padding: 10px 12px;
  font-size: 13px; font-family: inherit; outline: none; text-transform: uppercase; }
.cupao-form input:focus { border-color: var(--green); }
.cupao-form button { background: var(--ink); color: #fff; border: none; border-radius: 9px;
  padding: 0 16px; font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit; }
.cupao-form button:hover { background: var(--green); }
.cupao-on { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #f2faf4; border: 1px dashed var(--green); border-radius: 9px;
  padding: 10px 12px; margin-bottom: 16px; font-size: 13px; }
.cupao-on button { background: none; border: none; color: var(--muted); font-size: 17px;
  cursor: pointer; padding: 0 4px; font-family: inherit; }
.cupao-on button:hover { color: var(--red); }
.cart-clear { text-align: right; margin-top: 4px; }
.cart-clear button { background: none; border: none; color: var(--muted); font-size: 12.5px; cursor: pointer; font-family: inherit; text-decoration: underline; }
@media (max-width: 820px) {
  .cart-wrap { grid-template-columns: 1fr; padding: 10px 16px 26px; }
  .summary { position: static; }
  .cart-row .lt { width: 70px; }
}

/* ---- Checkout ---- */
.co-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 16px; }
.co-card h3 { font-size: 16px; font-weight: 900; text-transform: uppercase; margin-bottom: 16px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-size: 12.5px; font-weight: 700; }
.fld input, .fld textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; font-family: inherit; outline: none; }
.fld input:focus, .fld textarea:focus { border-color: var(--green); }
.pay-opts { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.pay-opt:hover { border-color: var(--green); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--green); }
.pay-opt:has(input:checked) { border-color: var(--green); background: #f2faf4; }

/* ---- Order confirmation ---- */
.confirm { padding: 6px 26px 20px; }
.confirm-head { text-align: center; padding: 20px 0 30px; }
.confirm-head .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-weight: 900; }
.confirm-head h1 { font-size: 26px; font-weight: 900; margin-bottom: 10px; }
.confirm-head p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.badge-estado { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; }
.pay-box { margin-top: 14px; border-radius: 12px; padding: 16px; font-size: 13.5px; }
.pay-box.mb { background: #f2f6ff; border: 1px solid #cdddf6; }
.pay-box.ok { background: #e4f4e8; border: 1px solid #bfe6cb; color: var(--green-d); font-weight: 700; }
.pay-box .pay-t { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.pay-box .pay-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #cdddf6; }
.pay-box .pay-row:last-of-type { border-bottom: none; }
.pay-box .pay-row b { font-size: 17px; letter-spacing: .04em; }
.pay-box .pay-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.badge-estado.pendente { background: #fff3e0; color: #b5620a; }
.badge-estado.pago { background: #e4f4e8; color: var(--green-d); }
.badge-estado.enviado { background: #e7edfb; color: #2a4a9e; }
.badge-estado.entregue { background: #e4f4e8; color: var(--green-d); }
.badge-estado.cancelado { background: #fde8e8; color: #b02525; }

@media (max-width: 560px) {
  .form-grid2 { grid-template-columns: 1fr; }
  .confirm { padding: 6px 16px 20px; }
}

/* ---- Auth (entrar/registar) ---- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 20px 60px; }
.auth-card { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 16px; padding: 32px 30px; box-shadow: 0 6px 24px rgba(20,25,40,.06); }
.auth-card h1 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.auth-card .sub { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.auth-card .fld { margin-bottom: 14px; }
.btn-auth { width: 100%; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.btn-auth:hover { background: var(--green-d); }
.auth-alt { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--green-d); font-weight: 700; }

/* ---- Order history ---- */
.enc-list { padding: 4px 26px 30px; max-width: 760px; }
.enc-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; transition: box-shadow .15s, border-color .15s; }
.enc-row:hover { border-color: var(--green); box-shadow: 0 6px 18px rgba(20,25,40,.07); }
.enc-row .ref { font-weight: 800; font-size: 15px; }
.enc-row .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 560px) { .enc-list { padding: 4px 16px 24px; } }

/* ---- Legal pages ---- */
.legal { max-width: 780px; padding: 10px 26px 50px; color: #2c3340; }
.legal > p:first-of-type { font-size: 16px; color: #444d5c; line-height: 1.8; }

/* Headings */
.legal h2 {
  font-size: 20px; font-weight: 900; letter-spacing: -.01em; color: var(--ink);
  margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; scroll-margin-top: 20px;
}
.legal h2:first-of-type { margin-top: 14px; }
.legal h2 .bar { width: 4px; height: 19px; background: var(--green); border-radius: 3px; flex: none; }
.legal h3 { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 26px 0 10px; }

/* Text */
.legal p { font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 18px 0; padding-left: 22px; }
.legal li { font-size: 15px; line-height: 1.8; margin-bottom: 9px; padding-left: 4px; }
.legal li::marker { color: var(--green); font-weight: 700; }
.legal a { color: var(--green-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--ink); }
.legal strong { color: var(--ink); font-weight: 700; }
.legal code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 6px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.legal .nota { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Callout boxes */
.legal .box { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: 10px; padding: 18px 22px; margin: 20px 0; }
.legal .box.green { background: #f3faf5; border-color: #cbe9d5; border-left-color: var(--green); }
.legal .box.warn { background: #fffaf1; border-color: #f3ddb4; border-left-color: var(--orange); }
.legal .box p { font-size: 14.5px; margin-bottom: 10px; }
.legal .box p:last-child, .legal .box ul:last-child { margin-bottom: 0; }

/* Identification list */
.legal ul.ident { list-style: none; margin: 16px 0 18px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.legal ul.ident li { padding: 12px 18px; border-bottom: 1px solid var(--line); margin: 0;
  font-size: 14.5px; background: #fff; }
.legal ul.ident li:nth-child(odd) { background: #fbfbfc; }
.legal ul.ident li:last-child { border-bottom: none; }

/* Tables */
.legal table.dados { width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.legal table.dados th, .legal table.dados td { text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.65; }
.legal table.dados tr:last-child th, .legal table.dados tr:last-child td { border-bottom: none; }
.legal table.dados th { background: #f7f8f9; font-weight: 800; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.legal table.dados tr th:first-child:not(:only-child) { width: 34%; border-right: 1px solid var(--line); }

/* Table of contents */
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal .toc a { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px;
  font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--ink); transition: all .15s; }
.legal .toc a:hover { border-color: var(--green); color: var(--green-d); background: #f3faf5; }

@media (max-width: 640px) {
  .legal { padding: 8px 16px 36px; }
  .legal h2 { font-size: 18px; margin-top: 34px; }
  .legal p, .legal li { font-size: 14.5px; }
  .legal table.dados { font-size: 13px; }
  .legal table.dados th, .legal table.dados td { padding: 9px 10px; }
  .legal table.dados tr th:first-child:not(:only-child) { width: auto; }
  .legal ul.ident li { padding: 11px 14px; font-size: 13.5px; }
}

/* ---- Promoções: informação legal obrigatória (DL 70/2007) --------------- */
.promo-legal { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.promo-legal .promo-ref,
.promo-legal .promo-datas { font-size: 12px; color: var(--muted); line-height: 1.45; }
.promo-legal .promo-ref { font-weight: 600; }
.promo-legal.compacto .promo-ref,
.promo-legal.compacto .promo-datas { font-size: 11px; }
.price-row + .promo-legal { margin-top: 8px; }

/* Contador decrescente — lê a data real de fim da campanha */
.promo-timer { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  background: #fff4f4; border: 1px solid #ffd4d4; border-radius: 10px; padding: 8px 14px; }
.promo-timer .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.promo-timer .val { font-size: 15px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }

/* Slide com imagem de fundo: escurece para o texto branco continuar legível */
.slide[data-img] { background-size: cover; background-position: center; }
.slide[data-img]::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,14,20,.82) 0%, rgba(10,14,20,.45) 70%, rgba(10,14,20,.25) 100%); }
.slide[data-img] .txt { position: relative; z-index: 3; }

/* ---- Vídeo do produto na galeria --------------------------------------- */
/* Vídeo e imagem partilham a mesma moldura; só um está visível de cada vez. */
.gallery .main video,
.gallery .main img { display: none; }
.gallery .main video.on,
.gallery .main img.on { display: block; }
.gallery .main video { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* Miniatura do vídeo, com o triângulo de reprodução por cima */
.gallery .thumbs .th-video {
  position: relative; width: 72px; height: 72px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: #14181f; cursor: pointer; overflow: hidden; flex: 0 0 auto;
}
.gallery .thumbs .th-video img { width: 100%; height: 100%; object-fit: cover; display: block; padding: 0; opacity: .75; }
.gallery .thumbs .th-video .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.gallery .thumbs .th-video.on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(47,158,68,.2); }

/* Pré-visualização do vídeo no painel de administração */
.video-atual { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.video-atual video { width: 200px; border-radius: 10px; background: #000; }
@media (max-width: 560px) { .video-atual { flex-direction: column; } .video-atual video { width: 100%; } }

/* Botão de impressão na confirmação (encomendas sem email) */
.btn-print { background: var(--ink); color: #fff; border: none; border-radius: 9px;
  padding: 11px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-print:hover { background: #000; }
@media print {
  header, nav, .announce, footer, .made, .btn-print, .cont { display: none !important; }
}
.form-grid2 .fld-nota { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
