/* =====================
   TABLET
===================== */
@media (max-width: 992px) {

  .hero-text h1 {
    font-size: 34px;
  }

  /* Categories: 3 per row */
  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
   body.page-bff .brand-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  body.page-bff .product-card {
    padding: 22px;
  }

  body.page-bff .product-card img {
    max-width: 190px;
  }
  
  .brand-hero-inner {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }
  
}

@media (max-width: 768px) {

  /* SHOW HAMBURGER */
  .hamburger {
    display: flex !important;
  }

  .navbar {
    position: relative;
    align-items: center;
  }

  .logo {
    max-width: 140px;
  }

  /* MOBILE MENU */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: #f36c21;
    overflow: hidden;

    max-height: 0;
    transition: max-height 0.35s ease;
    z-index: 999;
  }

  .nav-links.active {
    max-height: 180px;
  }

  .nav-links li {
    padding: 8px 0;
  }

  .nav-links a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
  }

  /* HERO */
  .brands-section{
      padding: 0 16px 0 16px;
  }
  .brand-card {
    min-height: 160px;
  }

  .brand-card img {
    max-height: 120px;
  }

  .brand-card.coming-soon {
    font-size: 16px;
  }
  .brands-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
  .brands-heading h2 {
    font-size: 22px;
  }

  .brands-heading {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
 .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 16px;
  }
  
  .hero-text {
    margin: 0;
  }

  .hero-text h1 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0;  
  }

  .hero-image {
    margin: 0;
    display: flex;
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 140px;
    width: 100%;
    height: auto;
  }

  .hero-text p {
    font-size: 16px;
    margin-bottom: 8px;
  }

  /* CATEGORIES */
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FOOTER */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-card {
    min-height: 200px;
    font-size: 28px;
  }
  
  .hero-subtext {
    font-size: 16px;
    margin-top: 8px;
  }

 .brand-hero {
    padding: 12px 16px;
  }

  .brand-hero-inner {
    display: flex;
    flex-direction: column;
  }

  .brand-logo {
    display: flex;
    justify-content: center;
  }

  .brand-logo img {
    width: 180px;
  }

  .brand-text {
    max-width: 100%;
  }

  .brand-text p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .brand-products-section {
 
  margin: 0 15px;
}

  .product-tiles-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .product-slider,
  .product-slider img {
    height: 200px;
  }

  .product-pill {
    min-height: 72px;
  }
}


/* =====================
   SMALL MOBILE
===================== */
@media (max-width: 480px) {

  .hero-text h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 22px;
  }
  
  body.page-bff .product-main img {
    max-width: 260px;   /* bigger main image */
  }

  body.page-bff .product-info img {
    max-width: 44px;
  }

  body.page-bff .product-info {
    margin-top: 12px;
  }
  
  
    body.page-bff .brand-products-grid {
    grid-template-columns: 1fr !important;  
    gap: 16px;
  }

  body.page-bff .product-card {
    padding: 24px;
  }

  body.page-bff .product-card img {
    max-width: 220px;  
  }
}