/**
 * BLOOM Responsive Breakpoints
 * Preserves the exact SareeKart tablet (<= 950px) and mobile (<= 600px) cadence
 * plus responsive Customer Portal and Admin drawers.
 */

@media (max-width: 950px) {
  .header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .brand {
    min-width: auto;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .collection:last-child {
    grid-column: span 2;
  }

  .bloom-account-grid {
    grid-template-columns: 1fr;
  }

  .bloom-track-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .bloom-admin-sidebar {
    position: fixed;
    top: 32px;
    left: 0;
    bottom: 0;
    z-index: var(--z-modal);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  .bloom-admin-sidebar.is-open {
    transform: translateX(0);
  }

  .bloom-admin-mobile-toggle {
    display: inline-flex;
  }

  .bloom-admin-topbar,
  .bloom-admin-content {
    padding-inline: 16px;
  }
}

@media (max-width: 600px) {
  .topbar {
    justify-content: center;
  }

  .topbar span:last-child {
    display: none;
  }

  .header {
    padding: 14px 4%;
  }

  .brand h1,
  .brand .brand-title {
    font-size: 23px;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 13px;
  }

  .action {
    font-size: 10px;
  }

  .nav {
    gap: 18px;
    padding: 10px 4%;
  }

  .nav .all {
    padding: 10px 13px;
  }

  .hero {
    min-height: 360px;
    padding: 35px 7%;
    background-position: 65% center;
  }

  .hero h2 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
  }

  .benefits {
    padding: 18px 4%;
    gap: 15px;
  }

  .benefit {
    justify-content: flex-start;
  }

  .benefit .ico {
    font-size: 22px;
  }

  .benefit strong {
    font-size: 12px;
  }

  .benefit small {
    font-size: 10px;
  }

  .section {
    padding: 35px 4%;
  }

  .section-title {
    font-size: 25px;
    gap: 12px;
  }

  .section-title::before,
  .section-title::after {
    width: 26px;
  }

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

  .category img {
    height: 125px;
  }

  .category strong {
    font-size: 12px;
  }

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

  .collection:last-child {
    grid-column: auto;
  }

  .collection {
    height: 190px;
  }

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

  .product-img {
    height: 220px;
  }

  .product-info {
    padding: 11px;
  }

  .product-info h3 {
    font-size: 12px;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter h2 {
    font-size: 24px;
  }

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

  .footer > div:first-child {
    grid-column: span 2;
  }

  .bloom-metric-grid {
    grid-template-columns: 1fr;
  }
}
