/* ═══════════════════════════════════════════════════
   STARLINK — Revendedor Autorizado Brasil
   Design System — Idêntico ao starlink.com
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --gray-950: #0a0a0a;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 0px;
  --transition: 200ms ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, select, textarea { font-family: var(--font); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════
   NAVBAR — Starlink style
   ════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__logo svg {
  height: 24px;
  width: auto;
}

.nav__logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-300);
  transition: color var(--transition);
  letter-spacing: 0.5px;
}

.nav__link:hover { color: var(--white); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cart {
  position: relative;
  color: var(--white);
  padding: 8px;
  transition: opacity var(--transition);
}

.nav__cart:hover { opacity: 0.7; }

.nav__cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}

.nav__cart-badge.show { display: flex; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ════════════════════════════════════════
   BUTTONS — Starlink style
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--gray-200);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn--dark {
  background: var(--gray-900);
  color: var(--white);
  border: 1px solid var(--gray-800);
}

.btn--dark:hover {
  background: var(--gray-800);
}

.btn--full { width: 100%; }

.btn--lg {
  padding: 18px 40px;
  font-size: 15px;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn--whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  padding: 0;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.btn--whatsapp svg { width: 28px; height: 28px; }

/* ════════════════════════════════════════
   HERO — Full viewport like starlink.com
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}

.hero__tag {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__price {
  margin-bottom: 32px;
}

.hero__price-current {
  font-size: 48px;
  font-weight: 800;
}

.hero__price-old {
  font-size: 20px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 12px;
}

.hero__price-label {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════ */
.section {
  padding: 120px 0;
}

.section--gray {
  background: var(--gray-950);
}

.section__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 17px;
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section__desc {
  margin: 0 auto;
}

/* ════════════════════════════════════════
   FEATURES GRID
   ════════════════════════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.feature {
  background: var(--black);
  padding: 48px 32px;
  text-align: center;
  transition: background var(--transition);
}

.feature:hover {
  background: var(--gray-950);
}

.feature__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--white);
}

.feature__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.feature__title {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.feature__text {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   PRODUCT CARDS
   ════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  overflow: hidden;
  transition: border-color var(--transition);
}

.product-card:hover {
  border-color: var(--gray-600);
}

.product-card__img {
  position: relative;
  background: var(--gray-900);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.product-card__img img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  transition: transform 400ms ease;
}

.product-card:hover .product-card__img img {
  transform: scale(1.03);
}

.product-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--white);
  color: var(--black);
}

.product-card__body {
  padding: 32px;
}

.product-card__name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.product-card__spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__spec-label {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__spec-value {
  font-size: 14px;
  font-weight: 600;
}

.product-card__pricing {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  margin-bottom: 24px;
}

.product-card__price {
  font-size: 32px;
  font-weight: 800;
}

.product-card__price-old {
  font-size: 16px;
  color: var(--gray-600);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.product-card__monthly {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ════════════════════════════════════════
   PLANS TABLE
   ════════════════════════════════════════ */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.plan {
  background: var(--black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.plan--highlight {
  background: var(--gray-950);
  border-top: 2px solid var(--white);
}

.plan__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.plan__price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}

.plan__period {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.plan__features {
  flex: 1;
  margin-bottom: 32px;
}

.plan__feature {
  font-size: 14px;
  color: var(--gray-300);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__feature::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   SPLIT SECTION (image + text)
   ════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.split__media {
  position: relative;
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

.split__content .section__title {
  margin-bottom: 20px;
}

.split__content .section__desc {
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__content {
    padding: 48px 24px;
  }
  .split__media {
    height: 300px;
  }
}

/* ════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border: 1px solid var(--gray-800);
}

.stat {
  background: var(--black);
  padding: 40px 24px;
  text-align: center;
}

.stat__number {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════
   TRUST BAR
   ════════════════════════════════════════ */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-800);
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.trust__item {
  background: var(--black);
  padding: 32px 24px;
  text-align: center;
}

.trust__item-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--gray-400);
}

.trust__item-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.trust__item-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-800);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
}

.faq-item__q-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gray-500);
}

.faq-item__q-icon svg {
  width: 100%;
  height: 100%;
}

.faq-item.open .faq-item__q-icon {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.faq-item__a-inner {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.7;
}

.faq-item.open .faq-item__a {
  max-height: 500px;
}

/* ════════════════════════════════════════
   FOOTER — Starlink style
   ════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--gray-800);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 13px;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--white); }

.footer__copy {
  font-size: 13px;
  color: var(--gray-600);
}

/* ════════════════════════════════════════
   CART DRAWER
   ════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: var(--gray-950);
  border-left: 1px solid var(--gray-800);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--gray-800);
}

.cart-drawer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cart-drawer__close {
  color: var(--gray-400);
  padding: 4px;
  transition: color var(--transition);
}

.cart-drawer__close:hover { color: var(--white); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-drawer__empty {
  text-align: center;
  padding: 64px 0;
}

.cart-drawer__empty-text {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-800);
}

.cart-item:last-child { border-bottom: none; }

.cart-item__img {
  width: 80px;
  height: 80px;
  background: var(--gray-900);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item__img img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.cart-item__info { flex: 1; }

.cart-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item__price {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-size: 14px;
  transition: all var(--transition);
}

.cart-item__qty-btn:hover {
  border-color: var(--white);
}

.cart-item__qty-num {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 8px;
  transition: color var(--transition);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-item__remove:hover { color: var(--error); }

.cart-drawer__footer {
  border-top: 1px solid var(--gray-800);
  padding: 24px;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-drawer__total-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}

.cart-drawer__total-value {
  font-size: 20px;
  font-weight: 800;
}

.cart-drawer__total-note {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ════════════════════════════════════════
   CHECKOUT PAGE
   ════════════════════════════════════════ */
.checkout {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 80px;
}

.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.checkout__title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

/* Steps */
.steps {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.3;
  transition: opacity var(--transition);
}

.step.active, .step.done { opacity: 1; }

.step__num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gray-700);
  transition: all var(--transition);
}

.step.active .step__num {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.step.done .step__num {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.step__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step.active .step__label { color: var(--white); }

/* Checkout sections */
.checkout-section {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  margin-bottom: 24px;
}

.checkout-section__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Forms */
.form-row {
  margin-bottom: 20px;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--gray-800);
  color: var(--white);
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--gray-400);
}

.form-input.error {
  border-color: var(--error);
}

.form-input::placeholder {
  color: var(--gray-700);
}

select.form-input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select.form-input option {
  background: var(--gray-900);
  color: var(--white);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

/* Payment methods */
.pay-method {
  border: 1px solid var(--gray-800);
  padding: 20px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.pay-method:hover { border-color: var(--gray-600); }

.pay-method.active {
  border-color: var(--white);
}

.pay-method input[type="radio"] { display: none; }

.pay-method__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-method__title {
  font-size: 14px;
  font-weight: 600;
}

.pay-method__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(34,197,94,0.1);
  color: var(--success);
  letter-spacing: 0.5px;
}

.pay-method__desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 6px;
  padding-left: 0;
}

.card-form {
  border: 1px solid var(--gray-800);
  padding: 24px;
  margin-top: 16px;
  display: none;
}

.card-form.show { display: block; }

/* Checkout terms */
.checkout-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--gray-400);
}

.checkout-terms input {
  margin-top: 2px;
  accent-color: var(--white);
}

.checkout-terms a {
  color: var(--gray-300);
  text-decoration: underline;
}

/* Checkout summary */
.checkout-summary {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.checkout-summary__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.checkout-summary__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-900);
}

.checkout-summary__item-img {
  width: 56px;
  height: 56px;
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary__item-img img {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}

.checkout-summary__item-name {
  font-size: 13px;
  font-weight: 600;
}

.checkout-summary__item-qty {
  font-size: 12px;
  color: var(--gray-600);
}

.checkout-summary__item-price {
  font-size: 14px;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-400);
}

.summary-row--total {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  border-top: 1px solid var(--gray-800);
  padding-top: 16px;
  margin-top: 8px;
}

.summary-trust {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
}

.summary-trust__item {
  font-size: 12px;
  color: var(--gray-500);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-trust__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--gray-500);
  stroke-width: 2;
  fill: none;
}

@media (max-width: 1024px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 768px) {
  .steps { flex-direction: column; gap: 12px; }
  .form-row--2 { grid-template-columns: 1fr; }
  .checkout-section { padding: 24px 16px; }
}

/* ════════════════════════════════════════
   TOAST
   ════════════════════════════════════════ */
.toast-wrap {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  transition: transform 300ms ease;
  min-width: 280px;
}

.toast.show { transform: translateX(0); }

.toast--success { border-left: 3px solid var(--success); }
.toast--error { border-left: 3px solid var(--error); }
.toast--info { border-left: 3px solid var(--info); }

/* ════════════════════════════════════════
   TERMS PAGE
   ════════════════════════════════════════ */
.terms {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 80px;
}

.terms__title {
  font-size: 36px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.terms__date {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.terms__body {
  max-width: 720px;
  color: var(--gray-300);
  line-height: 1.8;
}

.terms__body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 48px 0 16px;
}

.terms__body p {
  margin-bottom: 16px;
}

.terms__body ul {
  margin: 12px 0 16px 24px;
  list-style: disc;
}

.terms__body li {
  margin-bottom: 8px;
}

/* ════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════ */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login__box {
  width: 360px;
  max-width: 100%;
  padding: 40px;
  border: 1px solid var(--gray-800);
}

.admin-login__box h1 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
  text-align: center;
}

.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin__sidebar {
  background: var(--gray-950);
  border-right: 1px solid var(--gray-800);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin__sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: 16px;
}

.admin__sidebar-logo span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.admin__sidebar-logo small {
  display: block;
  font-size: 10px;
  color: var(--gray-600);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  transition: all var(--transition);
  cursor: pointer;
}

.admin-nav__item:hover {
  color: var(--white);
  background: var(--gray-900);
}

.admin-nav__item.active {
  color: var(--white);
  background: var(--gray-900);
  border-left: 2px solid var(--white);
}

.admin-nav__item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.admin__main {
  padding: 32px;
  overflow-y: auto;
}

.admin__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin__header h2 {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 24px;
}

.admin-stat__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.admin-stat__value {
  font-size: 28px;
  font-weight: 800;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-800);
}

.admin-table td {
  font-size: 13px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-900);
  color: var(--gray-300);
}

.admin-table tr:hover td {
  background: var(--gray-950);
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge--pending {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
}

.status-badge--paid {
  background: rgba(34,197,94,0.1);
  color: var(--success);
}

.status-badge--shipped {
  background: rgba(59,130,246,0.1);
  color: var(--info);
}

.status-badge--cancelled {
  background: rgba(239,68,68,0.1);
  color: var(--error);
}

/* Admin modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.admin-modal.open { display: flex; }

.admin-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.admin-modal__content {
  position: relative;
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  width: 600px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
}

.admin-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--gray-500);
  font-size: 20px;
  transition: color var(--transition);
}

.admin-modal__close:hover { color: var(--white); }

@media (max-width: 768px) {
  .admin { grid-template-columns: 1fr; }
  .admin__sidebar { display: none; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════
   SCROLL TOP
   ════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gray-800);
  border-color: var(--gray-500);
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 80px 0;
}

.confirmation__icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.confirmation__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--success);
  stroke-width: 2;
  fill: none;
}

.confirmation__title {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.confirmation__text {
  font-size: 15px;
  color: var(--gray-400);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.confirmation__order {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  display: inline-block;
  padding: 16px 32px;
  margin-bottom: 32px;
}

.confirmation__order small {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.confirmation__order-num {
  font-size: 22px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   ADDITIONAL CHECKOUT CLASSES
   ════════════════════════════════════════ */
.checkout__main {
  flex: 1;
  min-width: 0;
}

.checkout__steps {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

.checkout__step {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.3;
  transition: opacity var(--transition);
}

.checkout__step.active,
.checkout__step.completed { opacity: 1; }

.checkout__step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--gray-700);
  transition: all var(--transition);
}

.checkout__step.active .checkout__step-num {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.checkout__step.completed .checkout__step-num {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.checkout__step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkout__step.active .checkout__step-text { color: var(--white); }

.checkout__form {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  margin-bottom: 24px;
}

.checkout__form-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.form-info {
  padding: 20px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.payment-method {
  border: 1px solid var(--gray-800);
  padding: 16px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-method:hover { border-color: var(--gray-600); }

.payment-method.active { border-color: var(--white); }

.payment-method input[type="radio"] { display: none; }

.payment-method__name {
  font-size: 14px;
  font-weight: 600;
}

.payment-method__desc {
  font-size: 12px;
  color: var(--gray-500);
}

.payment-details {
  margin-bottom: 16px;
}

.checkout__sidebar {
  width: 380px;
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 32px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.checkout__sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.checkout__sidebar-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-400);
}

.checkout__sidebar-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  border-top: 1px solid var(--gray-800);
  padding-top: 16px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .checkout {
    flex-direction: column;
  }
  .checkout__sidebar {
    width: 100%;
    position: static;
  }
  .checkout__steps { flex-direction: column; gap: 12px; }
}

/* ════════════════════════════════════════
   ADDITIONAL ADMIN CLASSES
   ════════════════════════════════════════ */
.admin__sidebar-nav {
  display: flex;
  flex-direction: column;
}

.admin__sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.admin__sidebar-link:hover {
  color: var(--white);
  background: var(--gray-900);
}

.admin__sidebar-link.active {
  color: var(--white);
  background: var(--gray-900);
  border-left: 2px solid var(--white);
}

.admin__sidebar-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.admin__title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.admin__section {
  animation: fadeIn 300ms ease;
}

.admin__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin__stat-card {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  padding: 24px;
}

.admin__stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.admin__stat-value {
  font-size: 28px;
  font-weight: 800;
}

.admin__table-wrap {
  overflow-x: auto;
}

.admin__table {
  width: 100%;
  border-collapse: collapse;
}

.admin__table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-800);
}

.admin__table td {
  font-size: 13px;
  padding: 16px;
  border-bottom: 1px solid var(--gray-900);
  color: var(--gray-300);
}

.admin__table tr:hover td {
  background: var(--gray-950);
}

.admin__status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.admin__status--pending {
  background: rgba(245,158,11,0.1);
  color: var(--warning);
}

.admin__status--active {
  background: rgba(34,197,94,0.1);
  color: var(--success);
}

.admin__status--completed {
  background: rgba(59,130,246,0.1);
  color: var(--info);
}

.admin__status--cancelled {
  background: rgba(239,68,68,0.1);
  color: var(--error);
}

.admin__modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
}

.admin__modal {
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  width: 700px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
}

.admin__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-800);
}

.admin__modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.admin__modal-body {
  padding: 32px;
}

/* ── Terms page additional classes ── */
.terms__content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.terms__updated {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 48px;
}

.terms__section {
  margin-bottom: 32px;
}

.terms__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.terms__text {
  font-size: 15px;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ── Checkout layout as flexbox ── */
.checkout {
  display: flex;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}

@media (max-width: 768px) {
  .admin__stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Settings Tabs ── */
.settings-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.settings-tab {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.settings-tab:hover {
  color: var(--gray-300);
}

.settings-tab.active {
  color: var(--white);
  border-bottom-color: var(--white);
}

.settings-panel {
  max-width: 700px;
  animation: fadeIn 200ms ease;
}

.settings-panel h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gray-300);
}

@media (max-width: 600px) {
  .settings-tab { padding: 12px 16px; font-size: 10px; }
}

/* ── Cobertura / CEP Checker ── */
.cobertura {
  border-bottom: 1px solid var(--gray-800);
}

.cobertura__form {
  max-width: 600px;
  margin: 0 auto;
}

.cobertura__label {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.cobertura__input-row {
  display: flex;
  gap: 0;
}

.cobertura__input {
  flex: 1;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-right: none;
  color: var(--white);
  padding: 18px 24px;
  font-size: 16px;
  font-family: inherit;
  letter-spacing: 1px;
  outline: none;
  transition: border-color .2s;
}

.cobertura__input:focus {
  border-color: var(--white);
}

.cobertura__input::placeholder {
  color: var(--gray-600);
}

.cobertura__btn {
  border-radius: 0;
  white-space: nowrap;
  padding: 18px 32px;
}

.cobertura__result {
  margin-top: 20px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: fadeIn .3s ease;
}

.cobertura__result--success {
  background: rgba(76, 175, 80, .08);
  border: 1px solid rgba(76, 175, 80, .3);
  color: #66bb6a;
}

.cobertura__result--error {
  background: rgba(244, 67, 54, .08);
  border: 1px solid rgba(244, 67, 54, .3);
  color: #f44336;
}

.cobertura__result svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.cobertura__map-link {
  text-align: center;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .cobertura__input-row {
    flex-direction: column;
  }
  .cobertura__input {
    border-right: 1px solid var(--gray-700);
    border-bottom: none;
  }
  .cobertura__btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════
   PROFESSIONAL ENHANCEMENTS v2.0
   Responsividade avançada, acessibilidade, micro-interações
   ═══════════════════════════════════════════════════ */

/* ── Focus-visible (acessibilidade) ── */
*:focus-visible {
  outline: 2px solid rgba(66,165,245,0.6);
  outline-offset: 2px;
}

.form-input:focus-visible {
  outline: none;
  border-color: rgba(66,165,245,0.6);
  box-shadow: 0 0 0 3px rgba(66,165,245,0.08);
}

/* ── Custom selection ── */
::selection {
  background: rgba(66,165,245,0.25);
  color: #fff;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

/* ── Smooth transitions for all interactive elements ── */
.form-input {
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

/* ── Loading state for buttons ── */
.btn--loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn--loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ── Cart badge pop animation ── */
.nav__cart-badge {
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ── Product card image gradient ── */
.product-card__img {
  background: linear-gradient(135deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
}

/* ═══════════════════════════════════════
   ADMIN MOBILE NAVIGATION
   ═══════════════════════════════════════ */
.admin__mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1050;
  width: 44px;
  height: 44px;
  background: var(--gray-950);
  border: 1px solid var(--gray-800);
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.admin__mobile-toggle:hover {
  border-color: var(--gray-500);
}

.admin__sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.admin__sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .admin__mobile-toggle {
    display: flex;
  }

  .admin {
    grid-template-columns: 1fr;
  }

  .admin__sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1040;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 300ms ease;
  }

  .admin__sidebar.open {
    transform: translateX(0);
  }

  .admin__main {
    padding: 24px 16px;
    padding-top: 72px;
  }

  .admin__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin__title {
    font-size: 16px;
  }
}

@media (max-width: 500px) {
  .admin__stats {
    grid-template-columns: 1fr;
  }

  .admin__stat-card {
    padding: 16px;
  }

  .admin__stat-value {
    font-size: 22px;
  }
}

/* ── Admin table horizontal scroll ── */
.admin__table-wrap {
  -webkit-overflow-scrolling: touch;
}

.admin__table {
  min-width: 700px;
}

/* ═══════════════════════════════════════
   HERO — Better mobile responsiveness
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .hero__price-current {
    font-size: 36px;
  }

  .hero__price-old {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .stat__number {
    font-size: 28px;
  }

  .stat__label {
    font-size: 10px;
  }
}

/* ═══════════════════════════════════════
   SECTIONS — Better mobile spacing
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section__title {
    font-size: 24px;
  }

  .section__desc {
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════
   PRODUCT CARDS — Small phones
   ═══════════════════════════════════════ */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card__img {
    min-height: 200px;
    padding: 20px;
  }

  .product-card__body {
    padding: 20px;
  }

  .product-card__name {
    font-size: 18px;
  }

  .product-card__price {
    font-size: 28px;
  }
}

/* ═══════════════════════════════════════
   CHECKOUT — Better small screen support
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .checkout__form {
    padding: 20px 16px;
  }

  .checkout__form-title {
    font-size: 12px;
  }

  .checkout__sidebar {
    padding: 20px 16px;
  }

  .payment-method {
    padding: 12px 14px;
  }

  .confirmation__title {
    font-size: 18px;
    letter-spacing: 1px;
  }
}

/* ═══════════════════════════════════════
   WhatsApp + Scroll-top stacking fix
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .btn--whatsapp {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .btn--whatsapp svg {
    width: 24px;
    height: 24px;
  }

  .scroll-top {
    bottom: 76px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}

/* ═══════════════════════════════════════
   ADMIN LOGIN — Small screens
   ═══════════════════════════════════════ */
@media (max-width: 400px) {
  .admin-login__box {
    padding: 32px 20px;
    border: none;
    border-top: 2px solid var(--gray-800);
  }
}

/* ═══════════════════════════════════════
   PLANS — Better small screen support
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .plan {
    padding: 28px 20px;
  }

  .plan__price {
    font-size: 28px;
  }
}

/* ═══════════════════════════════════════
   TOAST — Mobile positioning
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .toast-wrap {
    right: 12px;
    left: 12px;
    bottom: 80px;
  }

  .toast {
    min-width: auto;
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════
   CARD FORM — Security visual indicator
   ═══════════════════════════════════════ */
#cardDetails {
  position: relative;
}

#cardDetails::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4caf50, #42a5f5, #4caf50);
  background-size: 200% 100%;
  animation: secureBar 3s linear infinite;
}

@keyframes secureBar {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ═══════════════════════════════════════
   FEATURE CARDS — Enhanced hover
   ═══════════════════════════════════════ */
.feature {
  position: relative;
  overflow: hidden;
}

.feature::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transition: transform 400ms ease;
}

.feature:hover::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════
   SKELETON LOADING — For async content
   ═══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════
   FORM VALIDATION — Visual feedback
   ═══════════════════════════════════════ */
.form-input.valid {
  border-color: var(--success);
}

.form-input.error {
  border-color: var(--error);
  animation: shakeInput 0.3s ease;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ═══════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════ */
@media print {
  .nav, .btn--whatsapp, .scroll-top, .cart-drawer, .cart-overlay, .toast-wrap {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
  }
}

/* ═══════════════════════════════════════
   REDUCED MOTION — Acessibilidade
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════
   PIX PAYMENT — Checkout Confirmation
   ═══════════════════════════════════════ */
.pix-pulse {
  width: 10px;
  height: 10px;
  background: #ff9800;
  border-radius: 50%;
  display: inline-block;
  animation: pixPulse 1.5s ease-in-out infinite;
}

@keyframes pixPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

#pixPaymentArea .form-input[readonly] {
  background: #0a0a0a;
  border-color: #1a3a1a;
  color: #4caf50;
  cursor: text;
  font-size: 11px;
}

#pixQrCode img {
  border-radius: 4px;
}

/* ═══════════════════════════════════════
   FINANCEIRO — Admin Panel
   ═══════════════════════════════════════ */
#sec-financeiro .form-group {
  margin-bottom: 16px;
}

#sec-financeiro .form-input {
  background: #0a0a0a;
}

@media (max-width: 600px) {
  #sec-financeiro [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  #financeBalance {
    font-size: 28px !important;
  }
}
