/* ===================================================================
   RESPONSIVE CSS
   =================================================================== */

/* ===================================================================
   MOBILE: 0 - 480px
   =================================================================== */
@media (max-width: 480px) {
  /* Show mobile, hide desktop nav */
  .desktop-navbar { display: none !important; }
  .mobile-header { display: flex !important; }
  .bottom-nav { display: block !important; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; text-align: center; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 0.9rem; }
  .hero-stats { justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
  .hero-img-wrap { margin-top: 2rem; }
  .hero-float-badge { display: none; }

  /* Cards */
  .deco-card-img { height: 160px; }

  /* Auth */
  .auth-card { margin: 0 0.5rem; }
  .auth-body { padding: 1.5rem; }

  /* Section titles */
  .section-title { font-size: 1.5rem; }

  /* Cart items */
  .cart-item-card { flex-wrap: wrap; }
  .cart-item-img { width: 70px; height: 65px; }

  /* Detail */
  .detail-main-img { height: 250px; }

  /* Profile stats row */
  .profile-stats-row > div { flex: 1 1 calc(50% - 0.5rem); }

  /* Footer */
  .footer { padding: 2rem 0 1rem; }

  /* Page hero */
  .page-hero h1 { font-size: 1.8rem; }

  /* Categories */
  .cat-circle { width: 65px; height: 65px; }
  .cat-item { min-width: 75px; }
  .cat-item span { font-size: 0.72rem; }
}

/* ===================================================================
   TABLET: 481px - 1024px
   =================================================================== */
@media (min-width: 481px) and (max-width: 1024px) {
  /* Show desktop navbar, hide mobile */
  .desktop-navbar { display: block !important; }
  .mobile-header { display: none !important; }
  .bottom-nav { display: none !important; }

  /* Hero */
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.2rem; }

  /* Grid tweaks */
  .deco-grid .col { flex: 0 0 50%; max-width: 50%; }

  /* Cart */
  .cart-item-card { flex-wrap: wrap; }

  /* Detail */
  .detail-main-img { height: 320px; }

  /* Float badges hide on small tablet */
  .hero-float-badge { display: none; }
}

/* ===================================================================
   DESKTOP: 1025px+
   =================================================================== */
@media (min-width: 1025px) {
  /* Show desktop navbar, hide mobile */
  .desktop-navbar { display: block !important; }
  .mobile-header { display: none !important; }
  .bottom-nav { display: none !important; }

  /* Hero */
  .hero h1 { font-size: 3.2rem; }
  .hero-float-badge { display: flex; }

  /* Cart layout */
  .cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
}

/* ===================================================================
   SHARED BETWEEN TABLET AND DESKTOP
   =================================================================== */
@media (min-width: 481px) {
  .toast-container-custom { bottom: 1.5rem; }
  .scroll-top-btn { bottom: 1.5rem; }
  .page-body { padding-bottom: 0; }
  
}

/* ===================================================================
   UTILITY RESPONSIVE HELPERS
   =================================================================== */
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
  .col-6.col-md-3 { max-width: 50%; }
}

@media (min-width: 768px) {
  .mobile-only { display: none !important; }
}

/* Make navbar search bar visible only on desktop */
@media (max-width: 991px) {
  .nav-search { display: none !important; }
  .desktop-navbar .nav-link { padding: 0.35rem 0.6rem !important; font-size: 0.88rem; }
}

/* Decorations Grid - Single Card on Mobile */
@media (max-width: 480px) {
  .row > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}