/* ============================================================
   TROPICAL NUTS — single-product clone visual do tropicalnuts.site
   Paleta: verde oliva #949523 + marrom #5a4023 + creme #fbf7f0
   Mobile-first, max-width 520px
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: #fff; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2a2719;
  font-size: 15px;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #5a4023;
  letter-spacing: -0.3px;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

:root {
  --tn-accent: #949523;
  --tn-accent-hover: #7d7e1d;
  --tn-accent-light: #c8c97a;
  --tn-primary: #5a4023;
  --tn-text: #2a2719;
  --tn-text-2: #4a4032;
  --tn-text-3: #7c7160;
  --tn-bg-cream: #fbf7f0;
  --tn-border: #e8e3d8;
  --tn-border-soft: #f0ebe0;
  --tn-footer: #3d2412;
  --tn-green: #5d8a1e;
  --tn-red: #dc2626;
  --tt-red: var(--tn-accent);
}

.tn-topbar {
  background: var(--tn-accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.tn-topbar__track {
  display: flex;
  gap: 36px;
  animation: tnScroll 25s linear infinite;
  white-space: nowrap;
  padding-left: 36px;
}
.tn-topbar__track span { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tn-topbar__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); }
@keyframes tnScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tn-header {
  background: #fff;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--tn-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.tn-header__menu { font-size: 24px; color: var(--tn-text); padding: 6px; line-height: 1; }
.tn-header__logo { display: flex; justify-content: center; }
.tn-header__logo img { height: 42px; width: auto; object-fit: contain; }
.tn-header__logo-txt {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--tn-primary);
  letter-spacing: -0.5px;
}
.tn-header__actions { display: flex; align-items: center; gap: 14px; }
.tn-header__icon { position: relative; color: var(--tn-text); padding: 4px; }
.tn-header__icon svg { width: 22px; height: 22px; }
.tn-cart-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--tn-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.tn-hero { padding: 18px 0 8px; background: #fff; }
.tn-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  position: relative;
}
.tn-gallery-main img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
}
.tn-gallery-thumbs-wrap {
  margin: 0 16px 14px;
  background: var(--tn-bg-cream);
  border-radius: 14px;
  padding: 10px 12px;
}
.tn-gallery-thumbs {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.tn-gallery-thumbs::-webkit-scrollbar { height: 4px; }
.tn-gallery-thumbs::-webkit-scrollbar-thumb { background: var(--tn-accent-light); border-radius: 2px; }
.tn-gallery-thumb {
  flex: 0 0 60px; height: 60px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  overflow: hidden;
  transition: 0.18s;
}
.tn-gallery-thumb.is-active { border-color: var(--tn-accent); }
.tn-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.tn-pmeta { padding: 0 18px 4px; }
.tn-pmeta-tag {
  font-size: 11px;
  color: var(--tn-accent);
  font-weight: 800;
  letter-spacing: 0.8px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.tn-pmeta-divider { color: var(--tn-text-3); }
.tn-badge-leve {
  display: inline-block;
  background: var(--tn-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.tn-promo-card {
  background: var(--tn-bg-cream);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 18px 14px;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--tn-border-soft);
}
.tn-promo-card__label { font-size: 12px; color: var(--tn-primary); font-weight: 700; }
.tn-promo-card__time {
  font-size: 18px; font-weight: 900;
  color: var(--tn-primary);
  font-variant-numeric: tabular-nums;
}
.tn-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--tn-primary);
  padding: 0 18px 8px;
  line-height: 1.3;
}
.tn-rating {
  display: flex; align-items: center; gap: 8px;
  padding: 0 18px 10px;
  font-size: 13px;
  color: var(--tn-text-2);
}
.tn-rating__stars { color: #f5b800; letter-spacing: 1px; }
.tn-rating__num { font-weight: 700; color: var(--tn-primary); }

.tn-prices { padding: 0 18px 14px; }
.tn-price-old { font-size: 13px; color: var(--tn-text-3); text-decoration: line-through; margin-bottom: 2px; }
.tn-price-discount {
  display: inline-block;
  color: var(--tn-red);
  font-weight: 800;
  font-size: 13px;
  margin-left: 8px;
}
.tn-price {
  font-size: 30px; font-weight: 900;
  color: var(--tn-primary);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.tn-price-pix { color: var(--tn-green); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tn-price-parcel { font-size: 13px; color: var(--tn-text-2); }

.tn-ctas { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.tn-cta {
  display: block; width: 100%;
  padding: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 99px;
  text-align: center;
  transition: 0.15s;
}
.tn-cta--primary { background: var(--tn-accent); color: #fff; border: 2px solid var(--tn-accent); }
.tn-cta--primary:hover { background: var(--tn-accent-hover); border-color: var(--tn-accent-hover); }
.tn-cta--outline { background: transparent; color: var(--tn-primary); border: 2px solid var(--tn-primary); }
.tn-cta--outline:hover { background: var(--tn-primary); color: #fff; }

.tn-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--tn-border-soft);
}
.tn-trust__item { text-align: center; padding: 12px 6px; }
.tn-trust__ico {
  width: 42px; height: 42px;
  margin: 0 auto 8px;
  background: var(--tn-bg-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tn-primary);
}
.tn-trust__ico svg { width: 22px; height: 22px; }
.tn-trust__txt { font-size: 11px; font-weight: 700; color: var(--tn-primary); line-height: 1.3; }

.tn-desc {
  padding: 20px 18px;
  border-top: 8px solid var(--tn-bg-cream);
  font-size: 14px;
  line-height: 1.6;
  color: var(--tn-text);
}
.tn-desc h2 { font-size: 18px; margin-bottom: 12px; color: var(--tn-primary); }
.tn-desc img { width: 100%; border-radius: 8px; margin: 12px 0; }

.tn-benefits { padding: 20px 18px; border-top: 1px solid var(--tn-border-soft); }
.tn-benefits h2 { font-size: 18px; margin-bottom: 14px; }
.tn-benefits__item { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.tn-benefits__ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--tn-bg-cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tn-primary);
}
.tn-benefits__ico svg { width: 20px; height: 20px; }
.tn-benefits__title { font-weight: 800; font-size: 14px; color: var(--tn-primary); margin-bottom: 2px; }
.tn-benefits__text { font-size: 13px; color: var(--tn-text-2); line-height: 1.5; }

.tn-ingredients { padding: 20px 18px; border-top: 8px solid var(--tn-bg-cream); }
.tn-ingredients h2 { font-size: 18px; margin-bottom: 14px; }
.tn-ingredients__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-ingredient {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tn-bg-cream);
  color: var(--tn-primary);
  font-size: 13px; font-weight: 700;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--tn-border-soft);
}
.tn-ingredient__check { color: var(--tn-accent); font-weight: 900; }

.tn-reviews { padding: 20px 18px; border-top: 8px solid var(--tn-bg-cream); }
.tn-reviews__header {
  background: var(--tn-bg-cream);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.tn-reviews__rating-big { font-size: 40px; font-weight: 900; color: var(--tn-primary); line-height: 1; }
.tn-reviews__stars { color: #f5b800; font-size: 16px; letter-spacing: 2px; }
.tn-reviews__count { font-size: 12px; color: var(--tn-text-2); margin-top: 4px; }
.tn-reviews__bars { flex: 1; }
.tn-reviews__bar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tn-text-2); margin-bottom: 2px; }
.tn-reviews__bar-fill {
  flex: 1; height: 4px;
  background: #e5e0d3;
  border-radius: 2px;
  overflow: hidden;
}
.tn-reviews__bar-fill span { display: block; height: 100%; background: var(--tn-accent); }
.tn-review { border-bottom: 1px solid var(--tn-border-soft); padding: 12px 0; }
.tn-review__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tn-review__name { font-weight: 700; font-size: 13px; color: var(--tn-primary); }
.tn-review__stars { color: #f5b800; font-size: 12px; letter-spacing: 1px; }
.tn-review__text { font-size: 13px; color: var(--tn-text-2); line-height: 1.5; }
.tn-review__verified {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  color: var(--tn-green);
  background: rgba(93, 138, 30, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

.tn-sticky-buy {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 520px;
  background: #fff;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  z-index: 60;
  border-top: 1px solid var(--tn-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}
.tn-sticky-buy__prices { flex: 1; line-height: 1.15; }
.tn-sticky-buy__price { font-size: 15px; font-weight: 900; color: var(--tn-primary); }
.tn-sticky-buy__pix { font-size: 11px; color: var(--tn-green); font-weight: 700; }
.tn-sticky-buy__btn {
  background: var(--tn-accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 14px;
  padding: 12px 24px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tn-footer {
  background: var(--tn-footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 28px 18px 24px;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 24px;
}
.tn-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  margin-bottom: 20px;
}
.tn-footer__nav a { color: rgba(255, 255, 255, 0.7); }
.tn-footer__nav a:hover { color: #fff; }
.tn-footer__contact { margin-bottom: 16px; }
.tn-footer__contact strong { color: #fff; font-weight: 700; display: block; margin-bottom: 4px; }
.tn-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  text-align: center;
}

.pdp-menu:not(.is-open) { display: none !important; }
.cart-bottom-bar { display: none !important; }

/* ============ Onda 98.14: /carrinho.php com design consistente do site tropical ============ */
.tn-cart-page{max-width:640px;margin:0 auto;padding:16px 16px 120px;font-family:'Nunito',sans-serif}
.tn-cart-page__title{font-family:'Poppins',sans-serif;font-size:24px;font-weight:800;color:var(--tn-primary,#5a4023);margin:12px 0 16px;text-align:center;letter-spacing:-.3px}

.tn-cart-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:48px 20px;background:#fff;border-radius:14px;border:1px solid #ebe6d5}
.tn-cart-empty__ico{font-size:56px;margin-bottom:12px}
.tn-cart-empty__title{font-size:18px;font-weight:800;color:var(--tn-primary,#5a4023);margin-bottom:6px}
.tn-cart-empty__sub{font-size:13px;color:#8b7355}

.tn-cart-progress{margin-bottom:14px;padding:14px 16px;background:linear-gradient(135deg,#fbf7ec 0%,#f7faed 100%);border:1.5px solid #d9e2b2;border-radius:12px;box-shadow:0 2px 8px rgba(148,168,36,.08)}
.tn-cart-progress__msg{font-size:13px;font-weight:600;color:#5a4023;line-height:1.4;margin-bottom:8px}
.tn-cart-progress__msg strong{color:var(--tn-accent,#94a824);font-weight:800}
.tn-cart-progress__msg--done{margin-bottom:0;color:#3f6212;text-align:center}
.tn-cart-progress__bar{height:10px;background:#e8e8d0;border-radius:99px;overflow:hidden;position:relative}
.tn-cart-progress__fill{height:100%;background:linear-gradient(90deg,var(--tn-accent,#94a824) 0%,#c9d84f 50%,var(--tn-accent,#94a824) 100%);background-size:200% 100%;border-radius:99px;transition:width .5s cubic-bezier(.4,0,.2,1);animation:tnCartShimmer 1.8s linear infinite;box-shadow:0 0 8px rgba(148,168,36,.4)}
@keyframes tnCartShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

.tn-cart-list{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.tn-cart-item{display:flex;gap:14px;padding:16px;background:#fff;border:1px solid #ebe6d5;border-radius:12px;box-shadow:0 2px 6px rgba(90,64,35,.05)}
.tn-cart-item__img{width:90px;height:90px;object-fit:cover;border-radius:10px;background:#fbf7ec;flex-shrink:0}
.tn-cart-item__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.tn-cart-item__name{font-size:15px;font-weight:800;color:var(--tn-primary,#5a4023);line-height:1.3;font-family:'Poppins',sans-serif}
.tn-cart-item__badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--tn-accent,#94a824),#7a8d1c);padding:4px 10px;border-radius:99px;width:fit-content;letter-spacing:.3px;text-transform:uppercase;box-shadow:0 2px 4px rgba(148,168,36,.25)}
.tn-cart-item__badge--muted{background:linear-gradient(135deg,#f59e0b,#f97316);text-transform:none;font-weight:700;letter-spacing:0}
.tn-cart-item__prices{display:flex;align-items:baseline;gap:8px;margin-top:2px}
.tn-cart-item__price-old{font-size:13px;color:#a8a29e;text-decoration:line-through;font-weight:600}
.tn-cart-item__price{font-size:20px;font-weight:900;color:var(--tn-accent,#94a824);font-family:'Poppins',sans-serif}
.tn-cart-item__meta{font-size:11px;color:#8b7355;font-weight:600}
.tn-cart-item__actions{display:flex;align-items:center;justify-content:space-between;margin-top:6px;gap:12px}
.tn-cart-item__qty{display:inline-flex;align-items:center;border:2px solid #ebe6d5;border-radius:10px;overflow:hidden;background:#fbf7ec}
.tn-cart-item__qty button{width:34px;height:34px;background:transparent;border:none;font-size:18px;font-weight:800;color:var(--tn-primary,#5a4023);cursor:pointer;line-height:1;transition:background .15s}
.tn-cart-item__qty button:hover{background:var(--tn-accent,#94a824);color:#fff}
.tn-cart-item__qty span{min-width:36px;text-align:center;font-weight:800;font-size:15px;color:var(--tn-primary,#5a4023)}
.tn-cart-item__remove{background:transparent;border:none;color:#a8a29e;font-size:12px;font-weight:600;cursor:pointer;padding:6px 8px;transition:color .15s;text-decoration:underline}
.tn-cart-item__remove:hover{color:#dc2626}

.tn-cart-trust{margin-top:16px;padding:14px 16px;background:#fff;border:1px solid #ebe6d5;border-radius:12px}
.tn-cart-trust__title{font-size:14px;font-weight:800;color:var(--tn-primary,#5a4023);margin-bottom:8px}
.tn-cart-trust__title strong{font-weight:800}
.tn-cart-trust__grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;font-size:12px;color:#5a4023;font-weight:600}

.tn-cart-bottom{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:2px solid #ebe6d5;padding:14px 16px;z-index:100;box-shadow:0 -4px 16px rgba(90,64,35,.12);max-width:640px;margin:0 auto}
.tn-cart-bottom__row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.tn-cart-bottom__label{font-size:13px;color:#8b7355;font-weight:600}
.tn-cart-bottom__value{font-size:26px;font-weight:900;color:var(--tn-accent,#94a824);font-family:'Poppins',sans-serif}
.tn-cart-savings{margin-bottom:10px;padding:8px 12px;background:linear-gradient(135deg,#ecfccb,#d9f99d);border:1px solid #a3e635;border-radius:8px;font-size:13px;color:#3f6212;font-weight:700;text-align:center}
.tn-cart-savings strong{color:#1a2e05;font-size:14px}
.tn-cart-badge{position:absolute;top:-4px;right:-6px;background:var(--tn-accent,#94a824);color:#fff;font-size:11px;font-weight:800;min-width:20px;height:20px;padding:0 5px;border-radius:99px;display:flex;align-items:center;justify-content:center}
