/* ═══════════════════════════════════════════════════════
   NIFER - Loja Virtual
   Layout baseado em https://nifermateriais.com.br/
   Cores: laranja #ff6002, azul #001b71, fundo branco #ffffff
   Identidade leve, profissional, técnica.
   ═══════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ─── */
:root {
  --primary-color: #ff6002;
  --primary-dark: #cc4d00;
  --primary-light: #ff8c38;
  --secondary-color: #001b71;
  --secondary-dark: #001450;
  --secondary-light: #2a3f9e;

  --white: #ffffff;
  --black: #0a0e1a;
  --text-primary: #1a1f2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --bg-body: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-warm: #fff8f3;
  --bg-dark: #0a0e1a;
  --bg-card: #ffffff;
  --success: #28a745;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --shadow-sm: 0 2px 12px rgba(0, 27, 113, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 27, 113, 0.10);
  --shadow-lg: 0 16px 50px rgba(0, 27, 113, 0.12);
  --shadow-primary: 0 8px 24px rgba(255, 96, 2, 0.32);

  --header-height: 85px;
  --max-width: 1280px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 50px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  font-family: var(--font-primary);
  background-color: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.cart-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 700; }
.section-tag {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}
.primary-divider {
  height: 2px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
  opacity: 0.5;
  border: none;
  margin: 1rem auto 0;
}

/* ─── Container ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border: none;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
  cursor: pointer;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn:hover::after { left: 100%; }
.btn--primary {
  background: var(--primary-color);
  color: var(--white) !important;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(255,96,2,0.42); }
.btn--secondary {
  background: var(--secondary-color);
  color: var(--white) !important;
}
.btn--secondary:hover { transform: scale(1.03); box-shadow: 0 12px 30px rgba(0,27,113,0.3); }
.btn--outline {
  background: transparent;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}
.btn--outline:hover { background: var(--primary-color); color: var(--white) !important; }
.btn--outline-white {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
}
.btn--outline-white:hover { background: var(--white); color: var(--secondary-color) !important; }
.btn--outline-dark {
  background: transparent;
  color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color);
}
.btn--outline-dark:hover { background: var(--secondary-color); color: var(--white) !important; }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn--mp {
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  padding: 1rem 2rem;
  width: 100%;
}
.btn--mp:hover { background: var(--primary-dark); transform: scale(1.02); }

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.5s, backdrop-filter 0.5s, padding 0.3s, box-shadow 0.3s;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  height: auto;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo img { height: 68px; object-fit: contain; transition: height 0.3s; }
.header.scrolled .header__logo img { height: 55px; }

.header__nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.header__nav-link {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary) !important;
  padding: 0.6rem 0.9rem;
  position: relative;
  transition: color 0.25s;
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}
.header__nav-link:hover,
.header__nav-link.active { color: var(--primary-color) !important; }
.header__nav-link:hover::after,
.header__nav-link.active::after { width: 60%; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__cart-toggle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,96,2,0.1);
  color: var(--secondary-color);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}
.header__cart-toggle:hover { background: var(--primary-color); color: var(--white); transform: scale(1.05); }
.header__cart-toggle svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--primary-color);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__mobile-toggle {
  display: none;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  background: transparent;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--bg-soft);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,96,2,0.08) 0%, rgba(0,27,113,0.06) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0.55) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 5rem;
  max-width: 680px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,96,2,0.08);
  border: 1px solid rgba(255,96,2,0.2);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 700;
}
.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.hero__title span {
  color: var(--primary-color);
}
.hero__description {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 400;
}
.hero__info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__info i { color: var(--primary-color); }
.hero__hours {
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ─── Sections ─── */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title span { color: var(--primary-color); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Diferenciais */
.diferenciais { background: var(--bg-soft); }
.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.pillar-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s;
  border: 1px solid var(--border-color);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,96,2,0.25);
}
.pillar-card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(255,96,2,0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.pillar-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}
.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Sobre */
.sobre { background: var(--bg-warm); }
.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.sobre__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sobre__image img { width: 100%; border-radius: var(--radius); }
.sobre__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.sobre__title span { color: var(--primary-color); }
.sobre__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* Produtos */
.produtos { background: var(--bg-body); }
.products__filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s;
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.35s;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(255,96,2,0.25);
}
.product-card__header {
  background: linear-gradient(135deg, #f7f9fc 0%, #edf1f7 100%);
  padding: 1.8rem;
  position: relative;
  text-align: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-color);
}
.product-card__header img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  transition: transform 0.4s;
}
.product-card:hover .product-card__header img { transform: scale(1.05); }
.product-card__icon {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}
.product-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  color: var(--primary-color);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(255,96,2,0.08);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
}
.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}
.product-card__unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.product-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
}
.product-card__actions .btn {
  padding: 0.8rem 1rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.product-card__actions .btn--primary {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}
.product-card__actions .btn--view {
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
}
.product-card__actions .btn--view:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

/* Depoimentos */
.depoimentos { background: var(--bg-soft); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 2.2rem;
  height: 100%;
  position: relative;
  transition: all 0.4s;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial__quote {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.08;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial__stars {
  color: var(--primary-color);
  font-size: 0.9rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.testimonial__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.testimonial__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contato */
.contato { background: var(--bg-body); }
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: 1rem;
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: rgba(255,96,2,0.3);
  transform: translateX(6px);
}
.contact-card__icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(255,96,2,0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-card__content h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.contact-card__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 96, 2, 0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 4rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__logo img { height: 70px; margin-bottom: 1.2rem; }
.footer__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.footer__title {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.footer__links li { margin-bottom: 0.7rem; }
.footer__link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--primary-color); }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}
.footer__contact i { color: var(--primary-color); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.footer__social a:hover { background: var(--primary-color); color: var(--white); }

/* ─── Cart Sidebar ─── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.55);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1110;
  transform: translateX(100%);
  transition: transform 0.35s ease-out;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.cart-sidebar.active { transform: translateX(0); }
.cart-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.cart-sidebar__title {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 700;
}
.cart-sidebar__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cart-sidebar__close:hover { background: var(--primary-color); color: var(--white); }
.cart-sidebar__items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.cart-item img {
  width: 70px; height: 70px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 6px;
}
.cart-item__info { flex: 1; }
.cart-item__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.cart-item__price {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cart-item__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 0.2rem;
}
.cart-item__qty button {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cart-item__qty span { font-size: 0.85rem; color: var(--text-primary); min-width: 20px; text-align: center; }
.cart-item__remove {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: underline;
}
.cart-item__remove:hover { color: #dc3545; }
.cart-sidebar__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-soft);
}
.cart-sidebar__summary {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text-primary);
  color: var(--white);
  padding: 1rem 1.8rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  transition: transform 0.3s ease-out;
  font-weight: 600;
  font-size: 0.9rem;
}
#toast.active { transform: translateX(-50%) translateY(0); }
#toast svg { color: var(--primary-color); }

/* WhatsApp float */
.whats-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s;
}
.whats-float:hover { transform: scale(1.1); }

/* Back to top */
#btt {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 990;
}
#btt.visible { opacity: 1; visibility: visible; }
#btt:hover { background: var(--primary-color); }

/* ═══════════════════════════════════════════════════════
   PRODUCT MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.product-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.active .product-modal { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--primary-color); color: var(--white); }

.modal__gallery {
  background: var(--bg-soft);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}
.modal__main-img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 1rem;
}
.modal__thumbs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.modal__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.modal__thumb:hover, .modal__thumb.active { border-color: var(--primary-color); transform: scale(1.05); }

.modal__info { padding: 2rem; }
.modal__tag {
  display: inline-block;
  background: rgba(255,96,2,0.08);
  color: var(--primary-color);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.modal__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.modal__sku {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.modal__price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.modal__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.modal__specs {
  margin-bottom: 1.5rem;
}
.modal__specs h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.modal__specs table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
}
.modal__specs td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.modal__specs td:first-child {
  width: 40%;
  color: var(--text-primary);
  font-weight: 600;
}
.modal__specs tr:last-child td { border-bottom: none; }
.modal__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.modal__actions .btn { flex: 1; min-width: 160px; }

.admin-preview,
.admin-preview-gallery {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.admin-preview-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  position: relative;
}
.admin-preview-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
}
.admin-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.admin-preview-remove,
.admin-preview-thumb button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dc3545;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid var(--bg-card);
  cursor: pointer;
}
.admin-preview-remove { top: 4px; right: 4px; }
.admin-preview-thumb button:hover,
.admin-preview-remove:hover { background: #b02a37; }
input[type="file"].form-control {
  padding: 0.65rem 0.8rem;
  border: 1px dashed var(--primary-color);
  background: rgba(255,96,2,0.03);
}

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════ */
.admin-body {
  background: var(--bg-soft);
  color: var(--text-primary);
  min-height: 100vh;
}
.admin-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.admin-header__logo img { height: 42px; }
.admin-header__logo span {
  font-weight: 800;
  color: var(--secondary-color);
  font-size: 1.1rem;
}
.admin-header__nav {
  display: flex;
  gap: 0.5rem;
}
.admin-header__nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.admin-header__nav a:hover, .admin-header__nav a.active {
  background: rgba(255,96,2,0.08);
  color: var(--primary-color);
}

.admin-main {
  padding: 2rem 0;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-toolbar h1 {
  font-size: 1.5rem;
  color: var(--text-primary);
}
.admin-toolbar .btn { padding: 0.8rem 1.4rem; font-size: 0.7rem; }
.admin-toolbar__search {
  display: flex;
  gap: 0.5rem;
}
.admin-toolbar__search input {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-primary);
  min-width: 260px;
}
.admin-toolbar__search input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  background: var(--bg-soft);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,96,2,0.03); }
.admin-table__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 4px;
}
.admin-table__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.admin-table__sku { font-size: 0.78rem; color: var(--text-muted); }
.admin-table__actions {
  display: flex;
  gap: 0.4rem;
}
.admin-table__actions button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.admin-table__actions .btn-edit {
  background: rgba(0,27,113,0.08);
  color: var(--secondary-color);
}
.admin-table__actions .btn-edit:hover { background: var(--secondary-color); color: var(--white); }
.admin-table__actions .btn-delete {
  background: rgba(220,53,69,0.08);
  color: #dc3545;
}
.admin-table__actions .btn-delete:hover { background: #dc3545; color: var(--white); }

/* Admin form modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.admin-modal-overlay.active { opacity: 1; visibility: visible; }
.admin-modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.admin-modal-overlay.active .admin-modal { transform: translateY(0); }
.admin-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-modal__header h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
}
.admin-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-modal__close:hover { background: var(--primary-color); color: var(--white); }
.admin-modal__body {
  padding: 1.5rem;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-form-grid .form-group.full { grid-column: 1 / -1; }
.admin-form-grid .form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.admin-form-grid .form-control {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
}
.admin-form-grid textarea.form-control { min-height: 80px; resize: vertical; }
.admin-form-grid .help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.admin-modal__footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

/* Admin login */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
}
.admin-login__box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.admin-login__box img { height: 64px; margin: 0 auto 1.5rem; }
.admin-login__box h1 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.admin-login__box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.admin-login__error {
  background: rgba(220,53,69,0.08);
  color: #dc3545;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

/* Specs editor */
.specs-list { display: flex; flex-direction: column; gap: 0.5rem; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.spec-row input {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-body);
  color: var(--text-primary);
}
.spec-row button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(220,53,69,0.08);
  color: #dc3545;
}
.spec-row button:hover { background: #dc3545; color: var(--white); }
.btn-add-spec {
  margin-top: 0.5rem;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT CLARO
   ═══════════════════════════════════════════════════════ */
body.checkout-page {
  background: var(--bg-soft);
  color: var(--text-primary);
}
.checkout-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.checkout-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-header__secure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.checkout-header__secure i { color: var(--success, #28a745); }
.checkout-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: start;
}
.checkout-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, opacity 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-sm);
}
.step-item.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.step-item.is-active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-md);
}
.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-soft);
}
.step-number {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}
.step-item.is-complete .step-number {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}
.step-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
}
.step-content { padding: 24px; }
.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}
.step-subtitle {
  margin: 24px 0 16px;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}
.checkout-summary h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.summary-items {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 20px;
}
.summary-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}
.summary-item:last-child { border-bottom: none; }
.summary-item img {
  width: 60px; height: 60px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 5px;
  border: 1px solid var(--border-color);
}
.summary-item .info { flex: 1; }
.summary-item .name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); line-height: 1.3; }
.summary-item .meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.summary-item .price { font-weight: 700; color: var(--primary-color); font-size: 0.88rem; text-align: right; white-space: nowrap; }
.summary-totals { border-top: 2px solid var(--border-color); padding-top: 18px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.summary-line.total { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-top: 10px; }
.summary-line.total span:last-child { color: var(--primary-color); }
.checkout-page .form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-primary);
}
.checkout-page .form-control::placeholder { color: var(--text-muted); }
.checkout-page .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 96, 2, 0.12);
}
.checkout-page .btn--outline {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
}
.checkout-page .btn--outline:hover { background: var(--primary-color); color: var(--white); }
.checkout-page .btn--mp {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  background: #009ee3;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
}
.checkout-page .btn--mp:hover { background: #007eb5; transform: translateY(-2px); }
.mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.mp-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #009ee3;
  font-weight: 800;
  font-size: 1.1rem;
}
.mp-secure {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.shipping-loading {
  padding: 20px;
  background: var(--bg-soft);
  border-radius: 12px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  border: 1px dashed var(--border-color);
}
.shipping-options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.shipping-option:hover { background: var(--bg-soft); }
.shipping-option.selected { border-color: var(--primary-color); background: rgba(255, 96, 2, 0.04); }
.shipping-option input { accent-color: var(--primary-color); }
.shipping-option .shipping-name { flex: 1; font-weight: 600; color: var(--text-primary); }
.shipping-option .shipping-time { font-size: 0.78rem; color: var(--text-muted); }
.shipping-option .shipping-price { font-weight: 800; color: var(--primary-color); font-size: 0.95rem; }
.order-status {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.order-status.success { border-color: rgba(40, 167, 69, 0.5); background: rgba(40, 167, 69, 0.06); }
.order-status.pending { border-color: rgba(255, 193, 7, 0.5); background: rgba(255, 193, 7, 0.06); }
.order-status.error { border-color: rgba(220, 53, 69, 0.5); background: rgba(220, 53, 69, 0.06); }
.config-warning {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.config-error { background: rgba(220,53,69,0.08); color: #dc3545; border-color: rgba(220,53,69,0.3); }
#pay-processing { text-align: center; padding: 20px 0; color: var(--text-secondary); }
.spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Skeleton / estados de carregamento ─── */
.skeleton-card {
  pointer-events: none;
}
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card) 0%,
    rgba(255,255,255,0.08) 50%,
    var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .header__mobile-toggle { display: flex; }
  .header__nav {
    position: absolute;
    top: 100%; left: 1rem; right: 1rem;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .header__nav.active { display: flex; }
  .hero::before { display: none; }
  .sobre__grid { grid-template-columns: 1fr; }
  .contato__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .product-modal { grid-template-columns: 1fr; }
  .modal__gallery { border-right: none; border-bottom: 1px solid var(--border-color); }
  .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 75px; }
  .header__logo img { height: 55px; }
  .hero { min-height: 100svh; }
  .hero__content { padding-top: 8rem; text-align: center; }
  .hero__title { font-size: 2.4rem; }
  .hero__ctas { justify-content: center; }
  .section { padding: 4rem 0; }
  .products__grid { grid-template-columns: 1fr; }
  .diferenciais__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; }
  .whats-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  #btt { bottom: 90px; right: 20px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .admin-table__img { width: 36px; height: 36px; }
}

/* ─── Página de Produtos / Paginação / Busca ─── */
.products-page__toolbar {
  max-width: 600px;
  margin: 0 auto 2rem;
}
.products-page__search {
  position: relative;
}
.products-page__search i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.products-page__search input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.products-page__search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 96, 2, 0.12);
}

.products-page__info {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.products-page__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.pagination-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.pagination-btn:disabled,
.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-ellipsis {
  color: var(--text-muted);
  padding: 0 0.25rem;
}

.products__more .btn {
  min-width: 220px;
}

/* ─── Fallback de imagem ─── */
.product-card__header img.fallback {
  opacity: 0.7;
  max-height: 140px;
  object-fit: contain;
}

