/* =========================================================
   LojaMundo Brasil - Estilos
   Paleta: azul-marinho (cabeçalho) + laranja (CTA), estilo marketplace
   ========================================================= */

:root {
  --navy: #0f2a4a;
  --navy-dark: #0a1e36;
  --navy-light: #163b66;
  --orange: #ff8a00;
  --orange-dark: #e67a00;
  --yellow: #ffc233;
  --red: #e53935;
  --green: #1e9e5a;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 42, 74, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 42, 74, 0.15);
  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* espaço para a barra do app */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 6px; font-weight: 700; font-size: 14px;
  transition: all .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,138,0,.35); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--yellow); }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 12px; }
.btn--add {
  width: 100%; background: var(--navy); color: #fff; padding: 9px; font-size: 13px; margin-top: 10px;
}
.btn--add:hover { background: var(--orange); }

.link { color: var(--navy-light); font-weight: 600; font-size: 14px; }
.link:hover { color: var(--orange); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-dark); color: #cbd5e1; font-size: 12px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar__left, .topbar__right { display: flex; gap: 10px; align-items: center; }
.topbar__sep { opacity: .4; }
.topbar a:hover { color: var(--yellow); }
.topbar strong { color: #fff; }

/* 語言切換 */
.lang { display: inline-flex; align-items: center; gap: 5px; }
.lang__btn { color: #cbd5e1; font-size: 12px; padding: 2px 7px; border-radius: 4px; line-height: 1.4; }
.lang__btn:hover { color: #fff; }
.lang__btn.is-active { background: var(--orange); color: #fff; font-weight: 700; }
.lang__sep { opacity: .4; }
html[lang="hi"] body { font-family: "Nirmala UI", "Noto Sans Devanagari", "Mangal", -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Cabeçalho ---------- */
.header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.header__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.header__burger span { width: 24px; height: 3px; background: #fff; border-radius: 2px; }

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo__icon { width: 38px; height: 38px; border-radius: 8px; display: block; }
.logo__text { font-size: 22px; font-weight: 400; letter-spacing: -.5px; }
.logo__text strong { color: var(--yellow); }

.search { flex: 1; display: flex; max-width: 720px; height: 42px; border-radius: 6px; overflow: hidden; background: #fff; }
.search__cat { border: none; background: #eef2f7; color: var(--text); padding: 0 10px; font-size: 13px; border-right: 1px solid var(--line); outline: none; }
.search__input { flex: 1; border: none; padding: 0 14px; font-size: 14px; outline: none; color: var(--text); }
.search__btn { background: var(--orange); width: 52px; font-size: 18px; }
.search__btn:hover { background: var(--orange-dark); }

.header__actions { display: flex; gap: 18px; margin-left: auto; }
.action { display: flex; align-items: center; gap: 8px; }
.action__icon { font-size: 24px; position: relative; }
.action__text { display: flex; flex-direction: column; line-height: 1.15; }
.action__text small { font-size: 11px; color: #cbd5e1; }
.action__text strong { font-size: 13px; }
.cart-badge {
  position: absolute; top: -6px; right: -10px; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px;
  display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Navegação ---------- */
.nav { background: var(--navy-light); border-top: 1px solid rgba(255,255,255,.08); }
.nav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__inner::-webkit-scrollbar { display: none; }
.nav__item { padding: 10px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; color: #e2e8f0; border-bottom: 2px solid transparent; }
.nav__item:hover { color: #fff; border-bottom-color: var(--orange); }
.nav__item--deal { color: var(--yellow); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 10px; }
.slider { position: relative; border-radius: 14px; overflow: hidden; height: 360px; box-shadow: var(--shadow-lg); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 40px 60px; opacity: 0; transition: opacity .6s ease; color: #fff;
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide--1 { background: linear-gradient(120deg, #0f2a4a 0%, #1e5aa8 60%, #ff8a00 140%); }
.slide--2 { background: linear-gradient(120deg, #6a1b9a 0%, #e53935 100%); }
.slide--3 { background: linear-gradient(120deg, #00695c 0%, #1e88e5 100%); }
.slide__content { max-width: 560px; }
.slide__tag { display: inline-block; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 14px; }
.slide h1 { font-size: 42px; line-height: 1.1; margin-bottom: 14px; font-weight: 800; }
.slide h1 em { font-style: normal; color: var(--yellow); }
.slide p { font-size: 17px; opacity: .92; margin-bottom: 24px; }
.slide__visual { width: 440px; max-width: 44%; flex-shrink: 0; animation: float 5s ease-in-out infinite; }
.slide__visual img { width: 100%; height: auto; display: block; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy);
  font-size: 28px; line-height: 1; display: grid; place-items: center; transition: background .2s;
}
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .2s; }
.slider__dots button.is-active { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- Seções ---------- */
.section { padding: 28px 0; }
.section--gray { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section__head h2 { font-size: 22px; font-weight: 800; color: var(--navy); }
.section__head .link { margin-left: auto; }
.section__head--center { flex-direction: column; text-align: center; gap: 6px; }
.rating-summary { color: var(--muted); }
.rating-summary b { color: var(--text); }

/* ---------- Tiles de categoria ---------- */
.tiles { display: grid; gap: 14px; }
.tiles--5 { grid-template-columns: repeat(5, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 14px; border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 14px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile__icon { font-size: 40px; }
.tile--a { background: linear-gradient(135deg, #37474f, #607d8b); }
.tile--b { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.tile--c { background: linear-gradient(135deg, #ad1457, #ec407a); }
.tile--d { background: linear-gradient(135deg, #2e7d32, #66bb6a); }
.tile--e { background: linear-gradient(135deg, #ef6c00, #ffa726); }
.tiles--tall .tile { padding: 36px 14px; }
.tile__flag { font-size: 54px; }
.tile strong { font-size: 18px; }
.tiles--tall .tile span:last-child { font-weight: 400; font-size: 13px; opacity: .9; }
.tile--us { background: linear-gradient(135deg, #b71c1c, #1a237e); }
.tile--uk { background: linear-gradient(135deg, #1a237e, #c62828); }
.tile--eu { background: linear-gradient(135deg, #0d47a1, #fbc02d); }
.tile--hk { background: linear-gradient(135deg, #c62828, #ef5350); }

/* ---------- Barra "Comprar de" ---------- */
.storebar { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }
.storebar__inner { display: flex; align-items: center; gap: 12px; }
.storebar__label { font-weight: 700; font-size: 14px; color: var(--navy); white-space: nowrap; }
.storebar__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.storebar__list::-webkit-scrollbar { display: none; }
.chip { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: all .15s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Countdown ---------- */
.countdown { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.countdown b { background: var(--red); color: #fff; padding: 3px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Grade de produtos ---------- */
.grid { display: grid; gap: 14px; }
.grid--products { grid-template-columns: repeat(6, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.product {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product__img {
  width: 100%; height: 150px; border-radius: 8px; object-fit: cover; margin-bottom: 10px; background: var(--bg);
}
.product__store { font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.product__title { font-size: 13px; font-weight: 600; line-height: 1.35; height: 2.7em; overflow: hidden; margin-bottom: 6px; }
.product__rating { font-size: 12px; color: #f5a623; margin-bottom: 6px; }
.product__rating small { color: var(--muted); }
.product__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product__price s { font-size: 12px; color: var(--muted); }
.product__price b { font-size: 18px; color: var(--navy); }

.badge { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; color: #fff; }
.badge--sale { background: var(--red); }
.badge--hot { background: var(--orange); }
.badge--new { background: var(--green); }

/* ---------- Deal tile ---------- */
.deal-tile {
  background: linear-gradient(160deg, var(--orange), #ff5722); color: #fff; border-radius: var(--radius);
  padding: 22px 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px;
}
.deal-tile__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; opacity: .9; }
.deal-tile h3 { font-size: 22px; line-height: 1.15; font-weight: 800; }
.deal-tile p { font-size: 13px; opacity: .9; }
.coupon { background: #fff; color: #e65100; font-weight: 900; letter-spacing: 2px; padding: 8px 14px; border-radius: 6px; border: 2px dashed #e65100; font-size: 15px; }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 26px; }
.brand {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px; text-align: center; transition: all .2s;
}
.brand:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.brand b { font-size: 17px; }
.brand span { font-size: 12px; color: var(--muted); }
.brand:hover span { color: #cbd5e1; }
.brand em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--orange); margin-top: 6px; }

.taglist h3 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.taglist__items { display: flex; flex-wrap: wrap; gap: 8px; }
.taglist__items a { padding: 6px 12px; background: var(--bg); border-radius: 4px; font-size: 13px; border: 1px solid var(--line); }
.taglist__items a:hover { border-color: var(--navy); color: var(--navy); }
.taglist__more { color: var(--orange) !important; font-weight: 700; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; }
.feature span { font-size: 36px; display: block; margin-bottom: 8px; }
.feature b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); }

/* ---------- Avaliações ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--bg); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.review__stars { color: #f5a623; margin-bottom: 10px; font-size: 16px; }
.review p { font-size: 14px; font-style: italic; margin-bottom: 14px; color: var(--text); }
.review b { display: block; font-size: 14px; color: var(--navy); }
.review small { color: var(--muted); font-size: 12px; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--navy), var(--navy-light)); color: #fff; padding: 40px 0; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { font-size: 24px; margin-bottom: 4px; }
.newsletter p { opacity: .85; font-size: 14px; }
.newsletter__form { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.newsletter__form input { flex: 1; padding: 12px 16px; border-radius: 6px; border: none; font-size: 14px; outline: none; }
.newsletter__ok { display: none; width: 100%; color: var(--yellow); font-weight: 600; }
.newsletter__ok.is-visible { display: block; }

/* ---------- SEO colunas ---------- */
.seo-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.seo-cols h4 { font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.seo-cols a { display: block; font-size: 13px; color: var(--muted); padding: 3px 0; }
.seo-cols a:hover { color: var(--orange); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-dark); color: #cbd5e1; padding-top: 40px; font-size: 13px; }
.footer__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; padding-bottom: 36px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; margin-top: 18px; text-transform: uppercase; letter-spacing: .5px; }
.footer__col h4:first-child { margin-top: 0; }
.footer__col a { display: block; padding: 4px 0; }
.footer__col a:hover { color: var(--yellow); }
.footer__col p { margin-bottom: 8px; line-height: 1.6; }
.footer__col b { color: #fff; }
.paylogos { display: flex; flex-wrap: wrap; gap: 6px; }
.paylogos span { background: #fff; color: var(--navy); font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 4px; }
.appbadges { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.appbadge { background: #000; color: #fff !important; padding: 10px 14px !important; border-radius: 6px; font-weight: 700; display: inline-block; border: 1px solid #333; }
.appbadge:hover { background: #222; }
.social { display: flex; gap: 8px; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-light); display: grid !important; place-items: center; padding: 0 !important; font-weight: 700; }
.social a:hover { background: var(--orange); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.trust { color: var(--green); font-weight: 600; }

/* ---------- Barra fixa do App ---------- */
.appbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--navy); color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25); transition: transform .3s;
}
.appbar.is-hidden { transform: translateY(100%); }
.appbar__inner { display: flex; align-items: center; gap: 14px; height: 62px; }
.appbar__icon { font-size: 30px; }
.appbar__text { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.appbar__text b { font-size: 14px; }
.appbar__text small { font-size: 12px; color: #cbd5e1; }
.appbar__close { color: #cbd5e1; font-size: 16px; padding: 6px; }

/* ---------- Voltar ao topo ---------- */
.totop {
  position: fixed; right: 16px; bottom: 80px; z-index: 80; width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 20px; font-weight: 700; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.totop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 200;
  background: var(--green); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .grid--products, .grid--6 { grid-template-columns: repeat(4, 1fr); }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .seo-cols { grid-template-columns: repeat(3, 1fr); }
  .slide h1 { font-size: 34px; }
  .slide__visual { font-size: 110px; }
}

@media (max-width: 820px) {
  .topbar__right { display: none; }
  .header__inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 12px; }
  .header__burger { display: flex; }
  .search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .header__actions { gap: 12px; }
  .action__text { display: none; }
  .action--hide-mobile { display: none; }

  .nav { display: none; }
  .nav.is-open { display: block; }
  .nav__inner { flex-direction: column; gap: 0; }
  .nav__item { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }

  .slider { height: 300px; }
  .slide { padding: 24px; flex-direction: column; justify-content: center; text-align: center; }
  .slide__visual { display: none; }
  .slide h1 { font-size: 28px; }
  .slide p { font-size: 15px; }
  .slider__arrow { display: none; }

  .tiles--5 { grid-template-columns: repeat(3, 1fr); }
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--products, .grid--6 { grid-template-columns: repeat(2, 1fr); }
  .deal-tile { grid-column: span 2; }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
  .seo-cols { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter__form { max-width: none; flex-basis: 100%; }
  .section__head h2 { font-size: 19px; }
}

@media (max-width: 480px) {
  .topbar { font-size: 11px; }
  .topbar__left span:nth-child(n+4) { display: none; } /* esconde a moeda em telas pequenas */
  .tiles--5 { grid-template-columns: repeat(2, 1fr); }
  .tiles--5 .tile:last-child { grid-column: span 2; }
  .brands .brand:last-child { grid-column: span 2; }
  .tile__icon { font-size: 32px; }
  .tile { padding: 16px 10px; font-size: 13px; }
  .product__img { height: 120px; font-size: 50px; }
  .product__price b { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .seo-cols { grid-template-columns: 1fr; }
  .appbar__text small { display: none; }
  .newsletter__form { flex-direction: column; }
}

/* =========================================================
   法律頁面 (privacy.html / terms.html)
   ========================================================= */
.page-legal { padding-bottom: 0; }
.header--simple .header__inner { height: 64px; }
.header--simple .back { margin-left: auto; color: #fff; font-weight: 600; font-size: 14px; }
.header--simple .back:hover { color: var(--yellow); }
.legal { max-width: 860px; margin: 30px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 48px; }
.legal h1 { color: var(--navy); font-size: 30px; margin-bottom: 6px; }
.legal__date { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.legal h2 { color: var(--navy); font-size: 19px; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--navy-light); text-decoration: underline; }
.page-legal .footer { margin-top: 30px; }
.page-legal .footer__bottom a:hover { color: var(--yellow); }
@media (max-width: 820px) {
  .legal { padding: 24px 18px; margin: 16px auto; }
  .legal h1 { font-size: 24px; }
}
.help-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.help-nav a { padding: 6px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--navy); }
.help-nav a:hover { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 14px 0 18px; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.contact-card > span { font-size: 22px; }
.contact-card b { font-size: 13px; color: var(--muted); font-weight: 600; }
.contact-card a { font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; }
.contact-card a:hover { color: var(--orange); }
.contact-card small { font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

/* =========================================================
   登入 / 註冊 / 會員頁 (login.html / account.html)
   ========================================================= */
.auth { max-width: 980px; margin: 30px auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.auth__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.auth__tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.auth__tab { flex: 1; padding: 12px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.auth__tab.is-active { color: var(--navy); border-bottom-color: var(--orange); }
.auth__form { display: none; }
.auth__form.is-active { display: block; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd2dc; border-radius: 6px; font-size: 15px; outline: none; font-family: inherit;
}
.field input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(22, 59, 102, .12); }
.field__hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.field--check input { margin-top: 3px; }
.field--check a { color: var(--navy-light); text-decoration: underline; }
.auth__btn { width: 100%; padding: 13px; font-size: 15px; margin-top: 4px; }
.auth__btn:disabled { opacity: .6; cursor: default; transform: none; }
.auth__msg { display: none; padding: 10px 12px; border-radius: 6px; font-size: 14px; margin-bottom: 14px; }
.auth__msg.is-error { display: block; background: #fdecea; color: #b71c1c; }
.auth__msg.is-ok { display: block; background: #e8f5e9; color: #1b5e20; }
.auth__foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.auth__foot a { color: var(--navy-light); text-decoration: underline; }
.auth__side { background: linear-gradient(160deg, var(--navy), var(--navy-light)); color: #fff; border-radius: var(--radius); padding: 32px; }
.auth__side h3 { font-size: 22px; margin-bottom: 16px; }
.auth__side ul { list-style: none; padding: 0; margin-bottom: 16px; }
.auth__side li { margin-bottom: 12px; font-size: 15px; line-height: 1.5; }
.auth__side .coupon { display: inline-block; background: #fff; color: #e65100; }

.account { max-width: 640px; margin: 30px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; }
.account__logo { margin: 0 auto 14px; border-radius: 14px; }
.account h1 { color: var(--navy); font-size: 28px; margin-bottom: 6px; }
.account__meta { color: var(--muted); margin-bottom: 22px; }
.account__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.account__info div { background: var(--bg); border-radius: 8px; padding: 12px; }
.account__info span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.account__info b { font-size: 14px; color: var(--navy); word-break: break-all; }
.account__coupon { margin-bottom: 8px; }
.account__coupon span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.account__coupon .coupon { display: inline-block; }
.account__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn--outline { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.btn--outline:hover { background: var(--navy); color: #fff; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; margin: 16px auto; }
  .auth__card, .auth__side { padding: 22px 18px; }
  .account { padding: 24px 18px; margin: 16px auto; }
  .account__info { grid-template-columns: 1fr; }
}

/* =========================================================
   商店頁面 (category / product / cart / checkout / orders / wishlist)
   ========================================================= */
.page-shop { padding-bottom: 0; }
.shop-main { padding: 20px 0 30px; min-height: 60vh; }
.page-title { font-size: 26px; color: var(--navy); font-weight: 800; margin-bottom: 16px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--navy-light); }
.crumbs a:hover { color: var(--orange); }
.loading { text-align: center; color: var(--muted); padding: 40px; font-size: 24px; }
.cart-badge--wish { background: var(--red); }

.product__wish { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 17px; line-height: 1; color: var(--muted); display: grid; place-items: center; }
.product__wish:hover, .product__wish.is-on { color: var(--red); border-color: var(--red); }
.product__link { display: block; }
.product__title a { color: inherit; }
.product__title a:hover { color: var(--orange); }

/* 分類頁 */
.cat-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat-count { color: var(--muted); font-size: 14px; }
.cat-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.sort { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sort select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; margin-left: 4px; font-family: inherit; }
.empty { text-align: center; padding: 40px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.empty__icon { font-size: 48px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 16px; }

/* 商品頁 */
.pd { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 10px; }
.pd__media { position: relative; }
.pd__img { width: 100%; border-radius: 12px; background: var(--bg); }
.pd__media .badge { top: 14px; left: 14px; font-size: 13px; padding: 5px 10px; }
.pd__title { font-size: 24px; line-height: 1.25; color: var(--navy); margin: 6px 0 8px; }
.pd__meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pd__meta a { color: var(--navy-light); text-decoration: underline; }
.pd__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.pd__price b { font-size: 32px; color: var(--navy); }
.pd__price s { color: var(--muted); font-size: 16px; }
.pd__price em { font-style: normal; color: var(--green); font-weight: 700; font-size: 14px; }
.pd__desc { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.pd__buy { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.qty button { width: 36px; height: 38px; font-size: 18px; background: var(--bg); color: var(--navy); }
.qty button:hover { background: var(--navy); color: #fff; }
.qty input { width: 52px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 15px; font-weight: 700; outline: none; -moz-appearance: textfield; font-family: inherit; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }
.pd__ship { list-style: none; padding: 14px 16px; background: var(--bg); border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.pd__ship li { padding: 4px 0; }
.pd__h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.pd__hl { padding-left: 20px; font-size: 14px; line-height: 1.7; }

/* 購物車 */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart__list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cart-head, .cart-row { display: grid; grid-template-columns: 80px 1fr 100px 130px 100px; gap: 14px; align-items: center; }
.cart-head { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cart-head span:first-child { grid-column: span 2; }
.cart-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row__img { width: 80px; height: 80px; border-radius: 8px; background: var(--bg); }
.cart-row__title { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.cart-row__title:hover { color: var(--orange); }
.cart-row__remove { color: var(--red); font-size: 12px; font-weight: 600; margin-top: 6px; display: block; }
.cart-row__price { font-size: 14px; color: var(--muted); }
.cart-row__total { font-weight: 800; color: var(--navy); font-size: 15px; text-align: right; }
.cart__back { display: inline-block; margin-top: 14px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.summary h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary__row--disc { color: var(--green); }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 17px; }
.summary__row--total b { color: var(--navy); font-size: 20px; }
.summary__free { color: var(--green); font-weight: 700; }
.summary__note { font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; text-transform: uppercase; outline: none; font-family: inherit; }
.coupon-form .btn { padding: 8px 14px; }
.summary__msg { font-size: 12px; margin: 6px 0 10px; min-height: 1em; }
.summary__msg.is-error { color: var(--red); }
.summary .auth__btn { margin-top: 8px; }
.summary .link { display: inline-block; margin-top: 12px; }

/* 結帳 */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.co-h3 { font-size: 17px; color: var(--navy); margin: 6px 0 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-bottom: 10px; }
.field--full { grid-column: span 2; }
.pay-opts { display: grid; gap: 8px; margin-bottom: 10px; }
.pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.co-lines { margin-bottom: 10px; }
.co-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.co-line img { width: 44px; height: 44px; border-radius: 6px; background: var(--bg); flex-shrink: 0; }
.co-line span { flex: 1; }
.co-line small { color: var(--muted); }
.co-line b { white-space: nowrap; }

/* 訂單 */
.order__hero { text-align: center; padding: 30px 20px 10px; }
.order__icon { font-size: 56px; margin-bottom: 8px; }
.order__hero h1 { font-size: 28px; color: var(--navy); margin-bottom: 6px; }
.order__hero p { color: var(--muted); }
.order__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.order__card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-align: center; }
.order__card span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.order__card b { font-size: 15px; color: var(--navy); }
.status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: #fff3e0; color: #e65100; }
.status--shipped, .status--transit { background: #e3f2fd; color: #1565c0; }
.status--delivered { background: #e8f5e9; color: #2e7d32; }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 10px 0 26px; padding: 0 10px; }
.timeline::before { content: ''; position: absolute; left: 12%; right: 12%; top: 10px; height: 3px; background: var(--line); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: 12px; color: var(--muted); }
.step__dot { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 6px; }
.step.is-done { color: var(--navy); font-weight: 700; }
.step.is-done .step__dot { background: var(--green); border-color: var(--green); }
.order__cols { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 20px; }
.order__cols h3 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
.addr { font-size: 14px; line-height: 1.7; }
.orders { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 150px 1fr 120px 110px 110px; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.order-row:hover { box-shadow: var(--shadow); }
.order-row__thumbs { display: flex; gap: 4px; }
.order-row__thumbs img { width: 34px; height: 34px; border-radius: 6px; background: var(--bg); }
.order-row__info b { display: block; color: var(--navy); }
.order-row__info small { color: var(--muted); }
.order-row__total { font-weight: 800; color: var(--navy); }
.order-row__view { color: var(--orange); font-weight: 700; font-size: 13px; text-align: right; }

@media (max-width: 1100px) {
  .cart, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 820px) {
  .pd { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .pd__title { font-size: 20px; }
  .pd__price b { font-size: 26px; }
  .cart__list { padding: 12px; }
  .cart-head { display: none; }
  .cart-row { grid-template-columns: 70px 1fr; grid-template-areas: "img info" "img price" "qty total"; row-gap: 8px; }
  .cart-row__media { grid-area: img; }
  .cart-row__info { grid-area: info; }
  .cart-row__price { grid-area: price; }
  .cart-row .qty { grid-area: qty; justify-self: start; width: max-content; }
  .cart-row .qty button { width: 32px; height: 34px; }
  .cart-row .qty input { width: 44px; }
  .cart-row__total { grid-area: total; align-self: center; }
  .cart-row__img { width: 70px; height: 70px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: span 1; }
  .order__grid { grid-template-columns: repeat(2, 1fr); }
  .order__cols { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .order-row__thumbs, .order-row__view { grid-column: span 2; }
  .order-row__view { text-align: left; }
  .page-title { font-size: 22px; }
}
