/* ==========================================================================
   VIPPASS VITRINE DE EVENTOS - RESPONSIVE STYLES
   ========================================================================== */

/* --- TABLETS & LANDSCAPE (<= 992px) --- */
@media (max-width: 992px) {
  .carousel-slide {
    height: 320px;
  }

  .carousel-title {
    font-size: 1.6rem;
  }
}

/* --- MOBILE & TABLET PORTRAIT (<= 768px) --- */
@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .header-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .search-box {
    max-width: 100%;
    order: 3;
    width: 100%;
  }

  .search-input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.95rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-nav-tab {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
  }

  .btn-primary-auth {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .user-profile-badge {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 0 1rem;
    margin: 1rem auto;
  }

  .carousel-slide {
    height: 280px;
  }

  .carousel-overlay {
    padding: 1.25rem;
  }

  .carousel-title {
    font-size: 1.35rem;
  }

  .carousel-meta {
    font-size: 0.8rem;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .btn-hero {
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
  }

  .filter-section {
    padding: 0 1rem;
    margin: 1rem auto 0.8rem;
    -webkit-overflow-scrolling: touch;
  }

  .events-section {
    padding: 0 1rem;
  }

  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .modal-backdrop {
    padding: 1rem;
  }

  .modal-container {
    max-height: 92vh;
  }

  .modal-banner-header {
    height: 200px;
  }

  .modal-content {
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .sector-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sector-price-box {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.65rem;
  }

  .my-tickets-container {
    padding: 0 1rem;
    margin: 1.5rem auto 3rem;
  }

  .tickets-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --- MOBILE BOTTOM-SHEET & TOUCH OPTIMIZATIONS (<= 600px) --- */
@media (max-width: 600px) {
  .site-header {
    padding: 0.65rem 0.85rem;
  }

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

  .brand-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
  }

  /* Bottom Sheet Modals on SmartPhones */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-container {
    width: 100%;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .modal-backdrop.active .modal-container {
    transform: translateY(0);
  }

  .btn-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .modal-banner-header {
    height: 180px;
  }

  .btn-whatsapp-banner {
    bottom: 0.85rem;
    right: 0.85rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .modal-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .auth-modal-box,
  .checkout-modal-box {
    padding: 1.5rem 1.15rem;
    border-radius: 20px 20px 0 0;
  }

  .btn-google-login {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  .btn-auth-submit,
  .btn-hero {
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* Touch-friendly Quantity selector (+/-) */
  .qty-control {
    gap: 0.85rem;
    padding: 0.35rem 0.65rem;
  }

  .btn-qty {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pix-copy-box {
    flex-direction: column;
    gap: 0.65rem;
  }

  .pix-copy-box input {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .btn-copy {
    width: 100%;
    padding: 0.75rem;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .pix-qr-img {
    width: 160px;
    height: 160px;
  }

  /* Mobile My Tickets Buttons */
  .ticket-card button,
  .ticket-card a {
    min-height: 44px;
  }
}

/* --- SMALL MOBILE DEVICES (<= 480px) --- */
@media (max-width: 480px) {
  .carousel-slide {
    height: 230px;
  }

  .carousel-title {
    font-size: 1.15rem;
  }

  .carousel-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

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

  .chip {
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }
}

