/* ==========================================================================
   ACHADINHOS VIP — RESPONSIVE & MOBILE-FIRST STYLES
   ========================================================================== */

/* ==========================================================================
   1. DRAWER MODAL DE FILTROS (MOBILE)
   ========================================================================== */
.filter-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 150;
  display: none;
  backdrop-filter: blur(2px);
}

.filter-drawer-backdrop.active {
  display: block;
}

.filter-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 160;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-drawer.active {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-section {
  margin-bottom: 18px;
}

.drawer-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.price-inputs-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.btn-drawer-apply {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* ==========================================================================
   2. BREAKPOINT TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-main-image-wrap {
    max-width: 440px;
    margin: 0 auto;
  }

  .modal-thumbnails {
    justify-content: center;
  }
}

/* ==========================================================================
   3. BREAKPOINT MOBILE (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .promo-bar {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .header-inner {
    height: 62px;
  }

  .brand-logo img {
    height: 34px;
  }

  .btn-mobile-menu {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 39;
  }

  .main-nav.open {
    display: flex;
  }

  .btn-vip-group span {
    display: none;
  }

  .btn-vip-group {
    padding: 8px 12px;
  }

  .hero-section {
    padding: 44px 0 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Exibe botão de abrir filtros e oculta filtros inline no mobile */
  .desktop-only-filter {
    display: none !important;
  }

  .btn-filter-mobile-trigger {
    display: inline-flex;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-bar-controls {
    width: 100%;
    justify-content: space-between;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: 0.85rem;
    height: 2.6em;
    margin-bottom: 8px;
  }

  .price-number {
    font-size: 1.15rem;
  }

  .card-cta-btn {
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .btn-card-copy-coupon {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  .modal-card {
    border-radius: var(--radius-md);
    max-height: 95vh;
  }

  .modal-body {
    padding: 18px 16px;
  }

  .modal-product-title {
    font-size: 1.2rem;
  }

  .price-val {
    font-size: 1.6rem;
  }

  .coupon-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .social-cta-title {
    font-size: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast-item {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   4. PEQUENOS SMARTPHONES (<= 380px)
   ========================================================================== */
@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
