/* ================================================================
   CENTER IMPRESSORAS — main.css v3.0 DEFINITIVE
   Cores: #005092 · #29cfb2 · #f20621
   Variáveis: mantidas idênticas ao original para compatibilidade
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── BRAND ── */
  --blue:        #005092;
  --blue-dark:   #003a6b;
  --blue-mid:    #185fa5;
  --blue-light:  #e6f1fb;
  --teal:        #29cfb2;
  --teal-dark:   #1a9e88;
  --teal-bg:     #e1f9f5;
  --red:         #f20621;
  --red-dark:    #c0041a;
  --red-bg:      #fff0f1;
  /* ── GRAYS ── */
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-900:    #111827;
  /* ── SEMANTIC ── */
  --amber:       #f59e0b;
  --green:       #16a34a;
  --green-light: #f0fdf4;
  /* ── SHADOWS ── */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl:   0 20px 25px rgba(0,0,0,.10), 0 8px 10px rgba(0,0,0,.04);
  --shadow-card: 0 2px 8px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-card-hover: 0 12px 28px rgba(0,80,146,.15), 0 4px 8px rgba(0,0,0,.06);
  /* ── RADIUS ── */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-btn: 50px;
  /* ── LAYOUT ── */
  --container: 1280px;
  --t: .2s ease;
}

/* ── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; min-height: 100%; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.65; color: var(--gray-900);
  background: #f0f4f8; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
#main-content { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

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

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  background: linear-gradient(135deg, #1a2a4a 0%, #003166 55%, #1a4a7a 100%);
  padding: 7px 0; position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-bar-promo {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.88); font-size: 12px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-bar-promo i { font-size: 14px; color: var(--teal); flex-shrink: 0; }
.top-bar-promo strong { color: #fff; }
.top-bar-links { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.top-bar-links a {
  color: rgba(255,255,255,.75); font-size: 12px;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--t); white-space: nowrap;
}
.top-bar-links a:hover { color: #fff; }
.top-bar-links a i { font-size: 13px; }
@media(max-width:640px) {
  .top-bar-promo { font-size: 11px; }
  .top-bar-links a span { display: none; }
  .top-bar-links { gap: 12px; }
}

/* ── HEADER SEARCH ───────────────────────────────────────── */
.header-search {
  background: #fff; padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 34px; z-index: 999;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
}
.header-search-inner { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img.logo-img { height: 40px; width: auto; object-fit: contain; }
.logo-mark {
  width: 40px; height: 40px; background: var(--blue); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; flex-shrink: 0; transition: background var(--t);
}
.logo:hover .logo-mark { background: var(--blue-dark); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-sub  { font-family: 'Sora', sans-serif; font-size: 9px; font-weight: 700; color: var(--teal-dark); letter-spacing: 1.2px; text-transform: uppercase; }
.logo-main { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 800; color: var(--blue); letter-spacing: -.3px; }
.search-wrap { flex: 1; max-width: 640px; position: relative; }
.search-input {
  width: 100%; height: 44px;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-btn);
  padding: 0 50px 0 18px; font-size: 14px; color: var(--gray-900);
  background: var(--gray-50); transition: border var(--t), box-shadow var(--t); outline: none;
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,80,146,.08); background: #fff; }
.search-input::placeholder { color: var(--gray-400); }
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; background: var(--blue); border: none; border-radius: 50px;
  color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--t);
}
.search-btn:hover { background: var(--blue-dark); }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 9px; border-radius: var(--r-sm);
  color: var(--gray-500); font-size: 10.5px; font-weight: 600;
  transition: background var(--t), color var(--t); position: relative; text-decoration: none;
}
.action-btn i { font-size: 21px; }
.action-btn:hover { background: var(--gray-100); color: var(--blue); }
.action-btn.minha-area {
  background: var(--blue-light); color: var(--blue);
  border-radius: var(--r-btn); padding: 7px 14px;
  flex-direction: row; gap: 6px; font-size: 12.5px; font-weight: 700;
}
.action-btn.minha-area:hover { background: var(--blue); color: #fff; }
.action-btn.minha-area i { font-size: 16px; }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
/* Search suggestions */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md);
  box-shadow: var(--shadow-xl); z-index: 999; overflow: hidden; display: none;
}
.suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-size: 13px; color: var(--gray-700); transition: background var(--t); text-decoration: none;
}
.suggest-item:hover { background: var(--gray-50); color: var(--blue); }
.suggest-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--gray-100); flex-shrink: 0; }
.suggest-item .s-price { color: var(--teal-dark); font-weight: 700; margin-left: auto; font-size: 12px; white-space: nowrap; }
@media(max-width:700px) {
  .header-search-inner { flex-wrap: wrap; gap: 10px; }
  .search-wrap { order: 3; flex: 1 0 100%; max-width: 100%; }
  .logo-text { display: none; }
  .action-btn span { display: none; }
  .action-btn.minha-area span { display: none; }
  .action-btn.minha-area { padding: 7px 10px; }
}

/* ── NAV MENU ────────────────────────────────────────────── */
.nav-menu { background: var(--blue); position: sticky; top: 78px; z-index: 998; overflow: visible !important; }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; position: relative; overflow: visible; }
.nav-list { display: flex; align-items: center; width: 100%; list-style: none; overflow: visible; scrollbar-width: none; }
.nav-list::-webkit-scrollbar { display: none; }
.nav-spacer { flex: 1; min-width: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 5px; padding: 12px 14px;
  white-space: nowrap; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
  text-decoration: none; flex-shrink: 0;
}
.nav-item i { font-size: 14px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.1); color: #fff; border-bottom-color: var(--teal); }
.nav-highlight { background: var(--teal); color: #002d1f !important; font-weight: 700; border-radius: var(--r-sm) var(--r-sm) 0 0; border-bottom-color: transparent !important; }
.nav-highlight:hover { background: var(--teal-dark) !important; }
.nav-hamburger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); font-size: 22px; cursor: pointer; flex-shrink: 0; }
@media(max-width:768px) {
  body.nav-mobile-open { overflow: hidden; }
  .nav-menu { top: 0; z-index: 999; }
  .nav-inner { min-height: 50px; padding: 0 14px; justify-content: space-between; }
  .nav-hamburger { display: inline-flex; margin-left: auto; }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    background: #fff;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-md);
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
    z-index: 9999;
    overflow-y: auto;
    max-height: calc(100dvh - 68px);
    -webkit-overflow-scrolling: touch;
  }
  .nav-list.open { display: flex !important; }
  .nav-inner { position: relative; }
  .nav-spacer { display: none; }
  .nav-item {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 0;
    border-radius: var(--r-sm);
    color: var(--gray-800);
    justify-content: flex-start;
    white-space: normal;
  }
  .nav-item i { color: var(--blue); font-size: 18px; }
  .nav-item:hover, .nav-item.active { background: var(--blue-light); color: var(--blue); border: 0; }
  .nav-highlight { margin-top: 4px; border-radius: var(--r-sm); background: var(--teal-bg); color: var(--teal-dark) !important; }
  .nav-highlight:hover { background: var(--teal) !important; color: #00362d !important; }
  .nav-has-dropdown { width: 100%; flex-direction: column; }
}

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb-wrap { background: #fff; border-bottom: 1px solid var(--gray-200); padding: 8px 0; }
.breadcrumb { display: flex; align-items: center; gap: 4px; font-size: 12px; flex-wrap: wrap; }
.bc-link { color: var(--blue); }
.bc-link:hover { text-decoration: underline; }
.bc-sep { color: var(--gray-300); font-size: 10px; }
.bc-current { color: var(--gray-500); }
.flash-wrap { margin-top: 6px; }
.flash { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: var(--r-sm); margin-bottom: 10px; font-size: 13.5px; font-weight: 500; }
.flash-success { background: var(--green-light); border-left: 4px solid var(--green); color: #15803d; }
.flash-error   { background: var(--red-bg);     border-left: 4px solid var(--red);   color: var(--red-dark); }
.flash-info    { background: var(--blue-light);  border-left: 4px solid var(--blue);  color: var(--blue); }
.flash-warning { background: #fffbeb;            border-left: 4px solid var(--amber); color: #92400e; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--blue);  color: #fff; box-shadow: 0 3px 12px rgba(0,80,146,.3); }
.btn-primary:hover   { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,80,146,.35); }
.btn-teal      { background: var(--teal);  color: #002d1f; box-shadow: 0 3px 12px rgba(41,207,178,.3); }
.btn-teal:hover      { background: var(--teal-dark); transform: translateY(-1px); }
.btn-red       { background: var(--red);   color: #fff; box-shadow: 0 3px 12px rgba(242,6,33,.25); }
.btn-red:hover       { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover   { background: var(--blue-light); }
.btn-white     { background: #fff; color: var(--blue); }
.btn-white:hover     { background: var(--gray-100); }
.btn-sm  { padding: 7px 16px; font-size: 12.5px; }
.btn-lg  { padding: 14px 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── PRODUCT CARDS — premium visual ────────────────────── */
.product-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  position: relative; display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,80,146,.15);
}
.product-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.badge { padding: 3px 9px; border-radius: 20px; font-size: 9.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; line-height: 1.5; box-shadow: 0 6px 14px rgba(17,24,39,.12); }
.badge-mais-vendido { background: linear-gradient(135deg, var(--red), #b80418); color: #fff; }
.badge-novo       { background: var(--teal); color: #002d1f; }
.badge-promo      { background: #ff6b00;     color: #fff; }
.badge-destaque   { background: var(--blue); color: #fff; }
.product-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; background: rgba(255,255,255,.95);
  border: 1px solid var(--gray-200); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
}
.product-wish:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.product-wish.ativo { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.product-img {
  height: 185px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--gray-50), var(--gray-100));
  overflow: hidden;
}
.product-img img { max-height: 165px; object-fit: contain; transition: transform .4s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: .18; }
.product-img-placeholder i { font-size: 60px; color: var(--blue); }
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 9.5px; font-weight: 700; color: var(--teal-dark); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 3px; }
.product-name { font-size: 13.5px; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin-bottom: 8px; flex: 1; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--blue); }
.product-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.stars { color: var(--amber); font-size: 11.5px; letter-spacing: .5px; }
.reviews-count { font-size: 11px; color: var(--gray-400); }
.stock-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; margin-bottom: 6px; }
.stock-in  { background: #e8f5e9; color: #2e7d32; }
.stock-low { background: #fff3e0; color: #e65100; }
.stock-out { background: var(--red-bg); color: var(--red-dark); }
.price-old { font-size: 11.5px; color: var(--gray-400); text-decoration: line-through; margin-bottom: 1px; }
.price-current { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 800; color: var(--teal-dark); line-height: 1.1; }
.price-pix { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.price-pix strong { color: var(--teal-dark); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 7px; margin: 10px 0 8px; }
.qty-label { font-size: 11px; color: var(--gray-400); font-weight: 600; }
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm); overflow: hidden; }
.qty-btn { width: 28px; height: 28px; border: none; background: #fff; cursor: pointer; font-size: 15px; color: var(--gray-600); transition: background var(--t); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--blue-light); color: var(--blue); }
.qty-val { width: 32px; text-align: center; font-size: 13px; font-weight: 600; }
.btn-add-cart {
  width: 100%; padding: 10px;
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; transition: background var(--t); font-family: inherit;
}
.btn-add-cart:hover { background: var(--blue-dark); }
.btn-add-cart:active { transform: scale(.97); }

/* ── PRODUCT GRID ────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media(max-width:1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:768px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media(max-width:400px)  { .product-grid { grid-template-columns: 1fr; } }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-hd h2 {
  font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--gray-900);
  display: flex; align-items: center; gap: 10px;
}
.section-hd h2::before { content: ''; width: 4px; height: 22px; background: var(--teal); border-radius: 3px; display: inline-block; flex-shrink: 0; }
.section-hd a { font-size: 13px; color: var(--blue); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-hd a:hover { color: var(--teal-dark); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-label .req { color: var(--red); margin-left: 2px; }
.form-control {
  width: 100%; height: 44px; border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm); padding: 0 13px;
  font-size: 14px; color: var(--gray-900); background: #fff;
  transition: border var(--t), box-shadow var(--t); outline: none;
  box-sizing: border-box; min-width: 0;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,80,146,.08); }
.form-control.error { border-color: var(--red); }
textarea.form-control { height: auto; padding: 11px 13px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.form-hint  { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.form-row   { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.form-row > .form-group { min-width: 0; }
input[type="date"].form-control { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
@media(max-width:520px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: flex-start; gap: 9px; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 17px; height: 17px; flex-shrink: 0; cursor: pointer; accent-color: var(--blue); margin-top: 1px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--gray-200); padding: 22px; box-shadow: var(--shadow-card); }
.card-sm { padding: 14px; border-radius: var(--r-md); }

/* ── TRUST BAR ───────────────────────────────────────────── */
.trust-bar { background: #fff; border-bottom: 1px solid var(--gray-200); }
.trust-inner { max-width: var(--container); margin: 0 auto; padding: 16px 24px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-right: 1px solid var(--gray-200); }
.trust-item:last-child { border-right: none; }
.trust-icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--blue-light), #fff); border: 1px solid rgba(0,80,146,.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 10px 22px rgba(0,80,146,.08); }
.trust-icon i { color: var(--blue); font-size: 20px; stroke-width: 2.2; }
.trust-t1 { font-size: 12.5px; font-weight: 700; color: var(--gray-900); }
.trust-t2 { font-size: 10.5px; color: var(--gray-400); margin-top: 1px; }
@media(max-width:900px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-right: 1px solid var(--gray-200); }
}
@media(max-width:480px) {
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .trust-item:last-child { border-bottom: none; }
}

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 28px 0; }
.page-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600); cursor: pointer; transition: all var(--t); text-decoration: none; }
.page-btn:hover { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--gray-900); }
.footer-top { padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-desc { color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.7; margin: 12px 0 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all var(--t); text-decoration: none; }
.footer-social a:hover { background: var(--teal); color: #002d1f; border-color: var(--teal); }
.footer-col-title { font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: .3px; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 12.5px; transition: color var(--t); }
.footer-links a:hover { color: var(--teal); }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.5); font-size: 12.5px; margin-bottom: 8px; }
.footer-contact i { color: var(--teal); font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.5); }
.footer-contact a:hover { color: var(--teal); }
.footer-seals { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.seal { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xs); padding: 4px 9px; color: rgba(255,255,255,.5); font-size: 10.5px; font-weight: 600; }
.seal i { color: var(--teal); font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-pgtos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-pgtos > span { color: rgba(255,255,255,.4); font-size: 11.5px; }
.pgto-icons { display: flex; gap: 5px; }
.pgto-badge { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xs); padding: 4px 10px; color: rgba(255,255,255,.65); font-size: 10.5px; font-weight: 600; }
.pgto-badge i { font-size: 12px; }
.pgto-mp { color: rgba(255,255,255,.3); font-size: 11px; }
.pgto-mp strong { color: var(--teal); }
.footer-copy { color: rgba(255,255,255,.25); font-size: 11px; }
@media(max-width:1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media(max-width:600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom-inner { flex-direction: column; gap: 10px; text-align: center; } }

/* ── WHATSAPP ─────────────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 24px; right: 20px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.wa-bubble { background: #fff; border: 1.5px solid #22c55e; border-radius: 14px 14px 0 14px; padding: 9px 12px; font-size: 12px; font-weight: 500; color: var(--gray-700); max-width: 210px; line-height: 1.5; box-shadow: var(--shadow-lg); position: relative; }
.wa-close { position: absolute; top: 4px; right: 7px; background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 15px; line-height: 1; padding: 0; }
.wa-close:hover { color: var(--red); }
.wa-btn { width: 54px; height: 54px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 27px; color: #fff; box-shadow: 0 4px 18px rgba(37,211,102,.4); transition: transform var(--t), box-shadow var(--t); position: relative; text-decoration: none; }
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37,211,102,.5); }
.wa-btn i { position: relative; z-index: 1; }
.wa-pulse { position: absolute; inset: -4px; border-radius: 50%; background: rgba(37,211,102,.22); animation: waPulse 2s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.45); opacity: 0; } 100% { transform: scale(1.45); opacity: 0; } }

/* ── AUTH PAGES ──────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 260px); display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: var(--gray-100); }
.auth-box { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--gray-200); padding: 40px 36px; width: 100%; max-width: 460px; box-shadow: var(--shadow-xl); }
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { width: 58px; height: 58px; background: var(--blue-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 27px; color: var(--blue); }
.auth-header h1 { font-family: 'Sora', sans-serif; font-size: 23px; font-weight: 800; color: var(--gray-900); margin-bottom: 5px; }
.auth-header p { font-size: 14px; color: var(--gray-500); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-500); }
.input-eye { position: relative; }
.input-eye .form-control { padding-right: 44px; }
.eye-btn { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 18px; padding: 4px; }
.eye-btn:hover { color: var(--blue); }

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: #fff; border-radius: var(--r-xl); max-width: 500px; width: 100%; padding: 28px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: modalIn .25s ease; }
@keyframes modalIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background var(--t); }
.modal-close:hover { background: var(--red-bg); color: var(--red); }

/* ── TABS ────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 11px 18px; font-size: 13.5px; font-weight: 600; color: var(--gray-500); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color var(--t), border-color var(--t); white-space: nowrap; }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover { color: var(--gray-700); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── UTILS ───────────────────────────────────────────────── */
.main-wrap { max-width: var(--container); margin: 0 auto; padding: 28px 24px; }
@media(max-width:640px) { .main-wrap { padding: 20px 16px; } }
.section { margin-bottom: 36px; }
.mt-0{margin-top:0} .mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}
.mb-0{margin-bottom:0} .mb-8{margin-bottom:8px} .mb-16{margin-bottom:16px} .mb-24{margin-bottom:24px} .mb-32{margin-bottom:32px}
.text-center{text-align:center} .text-right{text-align:right}
.text-blue{color:var(--blue)} .text-teal{color:var(--teal-dark)} .text-red{color:var(--red)} .text-muted{color:var(--gray-400)}
.fw-600{font-weight:600} .fw-700{font-weight:700} .fw-800{font-weight:800}
.d-flex{display:flex} .align-center{align-items:center} .justify-between{justify-content:space-between}
.gap-8{gap:8px} .gap-12{gap:12px} .gap-16{gap:16px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── CATEGORY CARDS ──────────────────────────────────────── */
.cats-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
@media(max-width:1024px) { .cats-grid { grid-template-columns: repeat(4, 1fr); } }
@media(max-width:600px)  { .cats-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media(max-width:380px)  { .cats-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card { background: #fff; border-radius: var(--r-lg); border: 1px solid rgba(0,0,0,.07); padding: 18px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all var(--t); text-decoration: none; box-shadow: var(--shadow-card); }
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.cat-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--blue-light), #fff); border: 1px solid rgba(0,80,146,.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: background var(--t), transform var(--t), box-shadow var(--t); box-shadow: 0 10px 22px rgba(0,80,146,.08); }
.cat-icon i { font-size: 25px; color: var(--blue); transition: color var(--t), transform var(--t); }
.cat-card:hover .cat-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,80,146,.2); }
.cat-card:hover .cat-icon i { color: #fff; }
.cat-name { font-size: 11.5px; font-weight: 700; color: var(--gray-900); line-height: 1.3; }
.cat-count { font-size: 10px; color: var(--gray-400); }

/* ── BANNER ROW ──────────────────────────────────────────── */
.banner-row { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; margin: 32px 0; }
.banner-card { border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 160px; }
.banner-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.banner-teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); }
.banner-card h3 { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.25; }
.banner-blue h3 { color: #fff; }
.banner-blue p  { color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.5; }
.banner-teal h3 { color: #002d1f; }
.banner-teal p  { color: rgba(0,45,31,.7); font-size: 13px; }
.banner-deco { position: absolute; top: 12px; right: 20px; font-family: 'Sora', sans-serif; font-size: 60px; font-weight: 900; opacity: .07; line-height: 1; pointer-events: none; color: currentColor; }
.banner-blue .btn-white { color: var(--blue); }
.banner-teal .btn-white { color: var(--teal-dark); }
@media(max-width:640px) { .banner-row { grid-template-columns: 1fr; } }

/* ── BRANDS BAR ──────────────────────────────────────────── */
.brands-bar { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--gray-200); padding: 22px 28px; margin-bottom: 32px; box-shadow: var(--shadow-card); }
.brands-title { font-size: 11px; font-weight: 700; color: var(--gray-400); letter-spacing: .8px; text-transform: uppercase; text-align: center; margin-bottom: 18px; }
.brands-grid { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.brand-pill { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--r-btn); border: 1.5px solid var(--gray-200); background: var(--gray-50); font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; color: var(--gray-600); transition: all var(--t); text-decoration: none; }
.brand-pill i { color: var(--blue); font-size: 16px; }
.brand-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ── REVIEWS ─────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.review-card { background: var(--gray-50); border-radius: var(--r-md); padding: 18px; border: 1px solid var(--gray-200); }
.review-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; font-family: 'Sora', sans-serif; }
.review-name { font-size: 13.5px; font-weight: 700; color: var(--gray-900); }
.review-date { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.review-text { font-size: 13px; color: var(--gray-600); line-height: 1.65; }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--teal-dark); background: var(--teal-bg); padding: 3px 8px; border-radius: 4px; margin-top: 8px; }
.review-summary { display: flex; align-items: center; gap: 8px; }
.review-nota { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: var(--amber); }
@media(max-width:900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── CONTA (account page) ─────────────────────────────────── */
.conta-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
@media(max-width:768px) { .conta-layout { grid-template-columns: 1fr; } }
.conta-sidebar { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--gray-200); overflow: hidden; box-shadow: var(--shadow-card); }
.conta-sidebar a { display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-size: 13.5px; font-weight: 500; color: var(--gray-600); border-left: 3px solid transparent; transition: all var(--t); text-decoration: none; }
.conta-sidebar a:hover { background: var(--blue-light); color: var(--blue); }
.conta-sidebar a.active { background: var(--blue-light); color: var(--blue); font-weight: 700; border-left-color: var(--blue); }
.conta-sidebar a i { font-size: 18px; }

/* ── PROMO POPUP ─────────────────────────────────────────── */
.promo-popup { position: fixed; bottom: 88px; right: 20px; z-index: 9998; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200); width: 290px; max-width: calc(100vw - 32px); overflow: hidden; animation: popupIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes popupIn { from { transform: scale(.8) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.promo-popup-hd { background: var(--blue); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.promo-popup-hd span { color: #fff; font-size: 13px; font-weight: 700; }
.promo-popup-close { background: none; border: none; color: rgba(255,255,255,.75); cursor: pointer; font-size: 18px; padding: 0; line-height: 1; }
.promo-popup-close:hover { color: #fff; }
.promo-popup-body { padding: 16px; }
.promo-popup-body p { font-size: 13px; color: var(--gray-700); line-height: 1.6; margin-bottom: 12px; }
.promo-popup-badge { display: inline-block; background: var(--red-bg); color: var(--red-dark); font-size: 18px; font-weight: 800; font-family: 'Sora', sans-serif; padding: 5px 14px; border-radius: var(--r-sm); margin-bottom: 12px; border: 2px dashed var(--red); }

/* ── MOBILE RESPONSIVE FIXES ─────────────────────────────── */
@media(max-width:768px) {
  .product-name { font-size: 12.5px; }
  .price-current { font-size: 18px; }
  .product-img { height: 150px; }
  .product-img img { max-height: 130px; }
  .product-body { padding: 11px; }
  .badge { font-size: 8.5px; padding: 2px 7px; }
  .product-badges { top: 8px; left: 8px; }
  .product-wish { top: 8px; right: 8px; width: 26px; height: 26px; }
  .product-wish i { font-size: 12px; }
}
@media(max-width:400px) {
  .wa-bubble { display: none; }
  .whatsapp-float { bottom: 16px; right: 14px; }
}
@media(prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══════════════════════════════════════════════════════
   MOBILE FIX v2 — Cards de Produto
   Baseado no print do usuário (iPhone ~390px)
   ══════════════════════════════════════════════════════ */

@media(max-width:768px) {

  /* Grid: 2 colunas limpas, sem overflow */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  /* Card: sem overflow horizontal */
  .product-card {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  /* Imagem menor para dar espaço ao conteúdo */
  .product-img {
    height: 130px !important;
  }
  .product-img img {
    max-height: 110px !important;
    object-fit: contain !important;
  }

  /* Body com padding reduzido */
  .product-body {
    padding: 10px !important;
  }

  /* Nome: 3 linhas máximo, sem overflow */
  .product-name {
    font-size: 12px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    min-height: auto !important;
  }

  /* Preço menor no mobile */
  .price-current {
    font-size: 16px !important;
  }
  .price-old { font-size: 10px !important; }
  .price-pix { font-size: 10px !important; }

  /* Badges: menores, sem sobreposição com o botão de favorito */
  .product-badges {
    top: 6px !important;
    left: 6px !important;
    gap: 3px !important;
    max-width: calc(100% - 44px) !important; /* não sobrepõe o botão wish */
  }
  .badge {
    font-size: 8px !important;
    padding: 2px 6px !important;
    border-radius: 12px !important;
  }

  /* Botão favorito menor */
  .product-wish {
    top: 6px !important;
    right: 6px !important;
    width: 26px !important;
    height: 26px !important;
  }
  .product-wish i { font-size: 12px !important; }

  /* Brand menor */
  .product-brand { font-size: 9px !important; }

  /* Stock tag menor */
  .stock-tag { font-size: 9px !important; padding: 1px 5px !important; }

  /* Stars menor */
  .stars { font-size: 10px !important; }
  .reviews-count { font-size: 9.5px !important; }

  /* Qty e botão add cart */
  .qty-row { margin: 7px 0 6px !important; gap: 5px !important; }
  .qty-btn { width: 24px !important; height: 24px !important; font-size: 13px !important; }
  .qty-val { width: 26px !important; font-size: 12px !important; }
  .btn-add-cart {
    padding: 8px 6px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .btn-add-cart i { font-size: 13px !important; }

  /* Main wrap sem padding lateral excessivo */
  .main-wrap {
    padding: 16px 12px !important;
  }

  /* Section header */
  .section-hd h2 { font-size: 17px !important; }
  .section-hd a  { font-size: 12px !important; }
}

/* Telas muito pequenas (< 360px) */
@media(max-width:360px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .product-img { height: 110px !important; }
  .price-current { font-size: 14px !important; }
  .product-name { font-size: 11px !important; }
}

/* ══ MACRO CATEGORY DROPDOWN ═══════════════════════════════ */
.nav-has-dropdown { position: relative; }
.nav-dropdown-toggle {
  all: unset;
  display: flex; align-items: center; gap: 5px;
  padding: 12px 14px; white-space: nowrap;
  color: rgba(255,255,255,.82); font-size: 13px; font-weight: 500;
  border-bottom: 3px solid transparent;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--t), color var(--t), border-color var(--t);
  font-family: inherit;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { background: rgba(255,255,255,.1); color: #fff; border-bottom-color: var(--teal); }
.nav-dropdown-toggle.open { background: rgba(255,255,255,.12); color: #fff; }
.nav-arrow { font-size: 12px; transition: transform .2s; margin-left: 1px; }
.nav-dropdown-toggle.open .nav-arrow { transform: rotate(180deg); }

.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 12px 32px rgba(0,0,0,.18); z-index: 99999;
  border-top: 3px solid var(--teal); overflow: visible;
}
.nav-dropdown.open { display: block; animation: ddIn .18s ease forwards; }
@keyframes ddIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
.nav-dd-inner { padding: 6px 0; }
.nav-dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; font-size: 13.5px; color: var(--gray-700);
  text-decoration: none; transition: background var(--t), color var(--t);
}
.nav-dd-item i { font-size: 16px; color: var(--gray-400); }
.nav-dd-item:hover { background: var(--blue-light); color: var(--blue); }
.nav-dd-item:hover i { color: var(--blue); }
.nav-dd-item.active { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.nav-dd-ver-todos {
  border-top: 1px solid var(--gray-200); margin-top: 4px;
  color: var(--blue); font-weight: 700; font-size: 12.5px;
}
.nav-dd-ver-todos i { color: var(--blue); }

/* Mobile dropdown - accordion */
@media(max-width:768px) {
  .nav-dropdown {
    display: none;
    width: 100%;
    position: static;
    min-width: 0;
    margin: 2px 0 8px;
    border: 0;
    border-left: 3px solid var(--teal);
    background: var(--gray-50);
    border-radius: var(--r-sm);
    box-shadow: none;
    overflow: hidden;
  }
  .nav-dropdown.open { display: block !important; }
  .nav-dd-item {
    color: var(--gray-700);
    padding: 11px 14px;
    font-size: 13px;
  }
  .nav-dd-item i { color: var(--blue); }
  .nav-dd-item:hover { background: var(--blue-light); color: var(--blue); }
  .nav-dd-ver-todos { border-top: 1px solid var(--gray-200); color: var(--teal-dark); }
  .nav-dd-ver-todos i { color: var(--teal-dark); }
  .nav-dropdown-toggle {
    width: 100%;
    min-height: 44px;
    color: var(--gray-800);
    border: 0;
    border-radius: var(--r-sm);
    padding: 11px 12px;
    text-align: left;
    justify-content: flex-start;
    white-space: normal;
  }
  .nav-dropdown-toggle i:first-child { color: var(--blue); font-size: 18px; }
  .nav-dropdown-toggle .nav-arrow { margin-left: auto; color: var(--gray-400); }
  .nav-dropdown-toggle.open {
    background: var(--blue-light);
    color: var(--blue);
    border: 0;
  }
}

/* ══ BREADCRUMB SPACING ════════════════════════════════════ */
.breadcrumb { gap: 6px; font-size: 13px; padding: 2px 0; }
.breadcrumb li { display: flex; align-items: center; }
.bc-sep { margin: 0 2px; color: var(--gray-300); font-size: 11px; }
.bc-link { color: var(--blue); text-decoration: none; transition: color var(--t); }
.bc-link:hover { color: var(--teal-dark); text-decoration: underline; }

/* Mobile nav final override */
@media(max-width:768px) {
  body.nav-mobile-open { overflow: hidden !important; }
  .nav-menu {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: var(--blue) !important;
    overflow: visible !important;
  }
  .nav-inner {
    min-height: 52px !important;
    padding: 0 18px !important;
    justify-content: flex-start !important;
  }
  .nav-hamburger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255,255,255,.12) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    transition: background var(--t), transform var(--t), border-color var(--t) !important;
  }
  .nav-hamburger:hover,
  .nav-hamburger[aria-expanded="true"] {
    background: rgba(255,255,255,.2) !important;
    border-color: rgba(255,255,255,.32) !important;
  }
  .nav-hamburger:active {
    transform: scale(.96) !important;
  }
  .nav-list {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-height: calc(100dvh - 72px) !important;
    margin: 8px 0 0 !important;
    padding: 8px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(16,24,40,.24) !important;
    z-index: 10000 !important;
    animation: mobileNavIn .18s ease both !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .nav-list.open { display: flex !important; }
  .nav-list > li { width: 100% !important; }
  .nav-item,
  .nav-dropdown-toggle {
    width: 100% !important;
    min-height: 46px !important;
    padding: 11px 13px !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: var(--gray-800) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .nav-item i,
  .nav-dropdown-toggle i:first-child {
    color: var(--blue) !important;
    font-size: 19px !important;
  }
  .nav-item:hover,
  .nav-item.active,
  .nav-dropdown-toggle.open {
    background: var(--blue-light) !important;
    color: var(--blue) !important;
  }
  .nav-arrow {
    margin-left: auto !important;
    color: var(--gray-400) !important;
  }
  .nav-dropdown {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 8px !important;
    padding: 4px 0 !important;
    background: var(--gray-50) !important;
    border: 0 !important;
    border-left: 3px solid var(--teal) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    animation: mobileDropdownIn .16s ease both !important;
  }
  .nav-dropdown.open { display: block !important; }
  .nav-dd-item {
    padding: 10px 14px !important;
    color: var(--gray-700) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
  .nav-highlight {
    margin-top: 4px !important;
    justify-content: center !important;
    background: var(--teal) !important;
    color: #00362d !important;
  }
  .nav-highlight i { color: #00362d !important; }
}
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mobileDropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.bc-current { color: var(--gray-500); font-size: 13px; }

/* ══ POLITICAS — scroll das abas ═══════════════════════════ */
.politicas-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #fff; position: sticky; top: 158px; z-index: 10;
}
.politicas-tabs::-webkit-scrollbar { display: none; }
.politicas-tabs::-webkit-scrollbar { height: 3px; }
.politicas-tabs::-webkit-scrollbar-track { background: transparent; }
.politicas-tabs::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.politicas-tab-btn {
  padding: 11px 18px; font-size: 13px; font-weight: 600; color: var(--gray-500);
  background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; scroll-snap-align: start;
  transition: color var(--t), border-color var(--t); font-family: inherit;
}
.politicas-tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.politicas-tab-btn:hover { color: var(--gray-700); }

/* ══ CONTA/ENDERECOS — fix mobile ═══════════════════════════ */
.conta-layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
@media(max-width:820px) { .conta-layout { grid-template-columns: 1fr; } }
.conta-sidebar a { display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-size: 13.5px; font-weight: 500; color: var(--gray-600); border-left: 3px solid transparent; transition: all var(--t); text-decoration: none; }
.conta-sidebar a:hover { background: var(--blue-light); color: var(--blue); }
.conta-sidebar a.active { background: var(--blue-light); color: var(--blue); font-weight: 700; border-left-color: var(--blue); }
.conta-sidebar a i { font-size: 18px; }

/* Fix formulário endereços */
.endereco-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:600px) { .endereco-form-grid { grid-template-columns: 1fr; } }

/* ══ HERO CARROSSEL RESPONSIVO ══════════════════════════════ */
.hero-slide { min-height: 420px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 48px 0; }
@media(max-width:900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 0; gap: 0; }
  .hero-stats  { display: none; }
  .hero-slide  { min-height: auto; }
  .hero-title  { font-size: clamp(22px, 6vw, 36px); }
  .hero-btns   { flex-wrap: wrap; gap: 10px; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}
@media(max-width:480px) {
  .hero-inner { padding: 28px 0; }
  .hero-title { font-size: 22px; }
  .hero-desc  { font-size: 13px; }
}
/* Fix slider controls não sobrepondo CTA */
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.hero-content { position: relative; z-index: 5; }

/* ══ ADMIN RESPONSIVO ═══════════════════════════════════════ */
@media(max-width:1024px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .atalhos-grid { grid-template-columns: repeat(3,1fr); }
  .ped-detail-grid { grid-template-columns: 1fr; }
}
@media(max-width:768px) {
  .admin-sidebar { position: fixed; left:0; top:0; transform: translateX(-100%); z-index: 1001; height: 100vh; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { width: 100%; }
  .admin-content { padding: 14px 12px; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .atalhos-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .atalho-card { padding: 14px 8px; font-size: 11px; }
  .atalho-card i { font-size: 22px; }
}
@media(max-width:480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .admin-topbar { padding: 0 12px; }
  .topbar-user-info { display: none; }
}



/* ══ TOP BAR TICKER (marquee) ══════════════════════════ */
.top-bar {
  /* Override: full-width, no container needed */
  padding: 0;
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  overflow: hidden;
}

/* Ticker: flex:1 so it takes all space except the links */
.top-bar-ticker {
  flex: 1;
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

/* The rolling strip — single line, no wrap */
.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: topBarTicker 35s linear infinite;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1;
}
.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes topBarTicker {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Links lado direito — flex-shrink:0 para não encolher */
.top-bar-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,.12);
  height: 34px;
}
.top-bar-links a {
  color: rgba(255,255,255,.82);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color .2s;
  text-decoration: none;
}
.top-bar-links a:hover { color: #fff; }
.top-bar-links a i { font-size: 13px; }

@media(max-width:640px) {
  .top-bar-links a span { display: none; }
  .top-bar-links { gap: 10px; padding: 0 10px; }
}

@media(max-width:768px) {
  html,
  body {
    background: var(--gray-900);
    overscroll-behavior-y: none;
  }
  #main-content {
    background: #f0f4f8;
  }
  .top-bar,
  .header-search {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
  .header-search {
    padding: 10px 0 !important;
  }
  .header-search-inner {
    align-items: center !important;
  }
  .logo img.logo-img {
    height: 38px !important;
    max-width: 138px !important;
  }
  .nav-menu {
    position: sticky !important;
    top: 0 !important;
  }
}

@media(prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ══ CONTA LAYOUT MOBILE FIX ════════════════════════════ */
@media(max-width:820px) {
  .conta-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .conta-sidebar {
    /* Sidebar vira menu horizontal no mobile */
    overflow-x: auto !important;
  }
  .conta-sidebar a {
    display: inline-flex !important;
    padding: 10px 14px !important;
    border-left: none !important;
    border-bottom: 3px solid transparent !important;
    white-space: nowrap;
    font-size: 12.5px !important;
  }
  .conta-sidebar a.active {
    border-left: none !important;
    border-bottom-color: var(--blue) !important;
  }
  .conta-sidebar > div:first-child {
    display: none; /* esconde nome/email no mobile */
  }
  /* Sidebar wrapper vira scroll horizontal */
  .conta-sidebar.card {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
    border-radius: var(--r-sm) !important;
    scrollbar-width: none;
  }
  .conta-sidebar.card::-webkit-scrollbar { display: none; }
}

/* ══ LOGIN MOBILE FIX ════════════════════════════════════ */
@media(max-width:480px) {
  /* Card do login sem padding lateral excessivo */
  div[style*="max-width:460px"] {
    padding: 28px 20px !important;
  }
  /* Google button full width */
  .g_id_signin,
  .g_id_signin > div,
  .g_id_signin iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Garante que o login box não estoure */
.auth-page, div[style*="min-height:calc(100vh - 260px)"] {
  padding: 24px 12px !important;
}

/* Ajuste final mobile: evita header sobreposto e faixa clara no fim do scroll */
@media(max-width:768px) {
  html,
  body {
    min-height: 100%;
    background: var(--gray-900) !important;
    overscroll-behavior-y: none;
  }
  #main-content {
    background: #f0f4f8 !important;
  }
  .top-bar,
  .header-search {
    position: static !important;
    top: auto !important;
  }
  .nav-menu {
    position: sticky !important;
    top: 0 !important;
  }
  .footer {
    background: var(--gray-900) !important;
  }
}
