/* ============================================================
   ATACADO BRAS SP — CSS ADICIONAL (Parte 2)
   Cole no final do arquivo css/style.css existente
   OU inclua como <link rel="stylesheet" href="css/additions.css">
   ============================================================ */

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.4,0,.2,1),
              transform .55s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ── BARRA TICKER ANIMADA ── */
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.promo-ticker {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}
.promo-ticker:hover { animation-play-state: paused; }

/* ── PRODUCT CARD HOVER 3D ── */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0,0,0,.13);
}

/* ── PREÇOS ATACADO / VAREJO ── */
.product-prices { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.price-wholesale {
  font-size: 19px; font-weight: 900;
  color: var(--color-text); line-height: 1;
}
.price-wholesale-label {
  font-size: 10px; font-weight: 700;
  color: var(--color-primary-dark); letter-spacing: .3px;
}
.price-retail-line { display: flex; align-items: center; gap: 6px; }
.price-retail-val {
  font-size: 11px; color: var(--color-text-light);
  text-decoration: line-through;
}
.price-retail-label { font-size: 10px; color: #9ca3af; }

/* ── BARRA PROGRESSO ATACADO no card ── */
.wholesale-progress { margin-bottom: 10px; }
.progress-bar-bg {
  background: #e5e7eb; border-radius: 4px; height: 5px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transition: width .5s cubic-bezier(.34,1.56,.64,1);
}
.progress-label { font-size: 10px; color: var(--color-text-light); margin-top: 3px; }
.progress-label.unlocked { color: #10b981; font-weight: 700; }

/* ── BADGES PRODUTO ── */
.badge-wrap {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.badge-featured {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px; letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(245,158,11,.4);
  display: flex; align-items: center; gap: 3px;
}
.badge-retail {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 20px;
}
.badge-size {
  background: rgba(255,255,255,.9); color: var(--color-primary-dark);
  font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 20px;
  display: flex; align-items: center; gap: 3px;
}

/* ── BOTÃO ADD RIPPLE ── */
.btn-add { position: relative; overflow: hidden; }
.btn-add::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,.45) 0%, transparent 70%);
  opacity: 0; transform: scale(0);
  transition: transform .4s, opacity .4s;
}
.btn-add:active::after { transform: scale(2.5); opacity: 1; transition: 0s; }

/* ── RIPPLE GENÉRICO ── */
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0); pointer-events: none;
  animation: rippleAnim .6s linear;
}

/* ── CART SIDEBAR ── */
.cart-sidebar {
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-item-sidebar { transition: background .2s, transform .1s; }
.cart-item-sidebar:hover { background: #fdf8f3; }

/* ── PRICE TYPE TAG ── */
.price-type-tag {
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px; margin-left: 4px;
  display: inline-block;
}
.price-type-tag.wholesale { background: #fef3c7; color: #92400e; }
.price-type-tag.retail    { background: #d1fae5; color: #065f46; }

/* ── PROGRESS BAR DO CARRINHO ── */
.cart-progress-wrap {
  background: #fdf8f3; border: 1.5px solid var(--color-accent);
  border-radius: 12px; padding: 12px 14px; margin: 12px 16px 0;
}
.cart-progress-label {
  font-size: 12px; font-weight: 700; color: var(--color-primary-dark);
  margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between;
}
.cart-progress-bar-bg { background: #e5e7eb; border-radius: 4px; height: 8px; overflow: hidden; }
.cart-progress-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transition: width .5s cubic-bezier(.34,1.56,.64,1);
}
.cart-progress-hint { font-size: 11px; color: var(--color-text-light); margin-top: 5px; }

/* ── PIX PREVIEW NO CARRINHO ── */
.pix-preview {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #a7f3d0; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 10px; font-size: 12px; color: #065f46;
  display: flex; align-items: center; gap: 8px;
}

/* ── FRETE BADGE ── */
.frete-badge {
  background: #d1fae5; color: #065f46; border-radius: 8px;
  padding: 8px 12px; font-size: 12px; font-weight: 600;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}

/* ── CEP INPUT ── */
.cep-section { margin: 0 0 12px; padding: 12px 16px 0; }
.cep-input-wrap { display: flex; gap: 8px; }
.cep-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 13px; outline: none; font-family: inherit;
  transition: border-color .2s;
}
.cep-input:focus { border-color: var(--color-primary); }
.cep-btn {
  padding: 9px 14px; background: var(--color-primary); color: #fff;
  border: none; border-radius: 8px; font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .2s;
}
.cep-btn:hover { background: var(--color-primary-dark); }
.cep-result { font-size: 12px; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.cep-result.ok  { color: #065f46; }
.cep-result.err { color: #ef4444; }

/* ── CUPOM ── */
.coupon-section { padding: 0 16px 12px; }
.coupon-input-wrap { display: flex; gap: 8px; }
.coupon-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid #e5e7eb;
  border-radius: 8px; font-size: 13px; font-family: monospace;
  text-transform: uppercase; letter-spacing: 1px; outline: none;
  transition: border-color .2s;
}
.coupon-input:focus { border-color: var(--color-primary); }
.coupon-btn {
  padding: 9px 14px; background: #f3f4f6; color: var(--color-text);
  border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 12px;
  font-weight: 700; cursor: pointer; transition: all .2s;
}
.coupon-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.coupon-result { font-size: 12px; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.coupon-result.ok  { color: #065f46; }
.coupon-result.err { color: #ef4444; }

/* ── NOTIFICATION TOAST ── */
.notification {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26,26,46,.96);
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  max-width: 260px;
  min-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-sizing: border-box;
}
.notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notification.success i { color: #10b981; }
.notification.error { background: #fee2e2; color: #991b1b; }
.notification.error i { color: #ef4444; }

/* ── SKELETON LOADER ── */
.skeleton {
  background: linear-gradient(90deg, #f0e8dd 25%, #fdf8f3 50%, #f0e8dd 75%);
  background-size: 200% auto;
  animation: skeleton 1.5s linear infinite;
  border-radius: 8px;
}
@keyframes skeleton { to { background-position: -200% center; } }
.skeleton-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.skeleton-img  { height: 180px; }
.skeleton-line { height: 14px; margin: 10px 14px 6px; }
.skeleton-line.short { width: 60%; }

/* ── HERO PARTICLES ── */
.hero-particle {
  position: absolute; border-radius: 50%;
  background: var(--color-primary); opacity: .09;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .09; }
  90%  { opacity: .09; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ── HEADER SCROLL EFFECT ── */
.main-header { transition: box-shadow .3s; }
.main-header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.12); }

/* ── PROMO BAR SHIMMER ── */
.top-promo-bar {
  background: linear-gradient(90deg,
    var(--color-primary-dark),
    var(--color-primary),
    var(--color-primary-dark));
  background-size: 200% auto;
  animation: shimmerBar 4s linear infinite;
}
@keyframes shimmerBar { to { background-position: 200% center; } }

/* ── CATEGORY IMAGE CARDS ── */
.category-image-card img {
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.category-image-card:hover img { transform: scale(1.06); }

/* ── PROMO CARD WOBBLE ── */
.promo-icon { animation: wobble 3.5s ease-in-out infinite; }
@keyframes wobble {
  0%,100% { transform: rotate(-6deg); }
  50%     { transform: rotate(6deg); }
}

/* ── SIDEBAR MENU ── */
.sidebar-menu  { transition: transform .35s cubic-bezier(.4,0,.2,1); }
.menu-overlay  { transition: opacity .3s; }

/* ── MODAL ANIMATIONS ── */
.modal-overlay { transition: opacity .25s; }
.modal-box {
  transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

/* ── SIZE BTN SELECTED ── */
.size-btn.selected {
  background: var(--color-primary);
  border-color: var(--color-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(200,168,130,.4);
  transform: scale(1.06);
}

/* ── FORM INPUT AUTO-FILLED ── */
.form-input.auto-filled {
  background: #f0fdf4; border-color: #a7f3d0;
}

/* ── CART BADGE POP ── */
@keyframes badgePop {
  0%   { transform: scale(0) rotate(-20deg); }
  60%  { transform: scale(1.25) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.header-cart-badge { animation: badgePop .35s cubic-bezier(.34,1.56,.64,1); }

/* ── FOOTER SOCIAL ICONS ── */
.footer-socials a {
  transition: color .2s, transform .2s;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.footer-socials a:hover { color: var(--color-primary) !important; transform: translateY(-3px); background: rgba(255,255,255,.12); }

/* ── NAVBAR ACTIVE INDICATOR ── */
.navbar-item::after {
  content: ''; position: absolute; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--color-primary); border-radius: 3px 3px 0 0;
  transition: width .22s;
}
.navbar-item.active::after { width: 24px; }

/* ── RESPONSIVE EXTRAS ── */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .price-wholesale { font-size: 16px; }
  .cart-sidebar { width: 100vw; }
}
@media (min-width: 900px) {
  .bottom-navbar { display: none !important; }
  .site-footer   { margin-bottom: 0 !important; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
