body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
}

.header {
    background: #f0e8e1;
    padding: 20px;
    text-align: center;
}

.header img {
    max-width: 120px;
}

.intro,
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 11.125rem auto 7.125rem auto;
    padding: 20px;
}

.footer{
   margin: 2rem auto 7.125rem auto;
}

.intro-text,
.footer-text {
    width: 50%;
}

.intro img,
.footer img {
    width: 45%;
    border-radius: 8px;
}

.brand-products {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    background: #fff;
    padding: 15px;
    text-align: center;
    width: 180px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}


.product-price {
    color: #333;
    margin: 5px 0;
}

.product-order {
    margin-top: 10px;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid orange;
    color: orange;
    border-radius: 20px;
    font-size: 0.9em;
}

.brand-coverImage-container {
    background-image: url("https://cdn.erply.com/files/542157/Topic1.png");
    height: 150px;
    /* padding: 0 8rem; */
}

.brand-coverImage {
    margin: 0 auto;
    max-width: 1200px;
}


hr.brand-coverImage-hr {
    padding-top: 4rem;
    margin-left: 1.75rem;
    margin-right: 1.75rem;
    margin-bottom: 1rem;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

.brand-description {
    font-size: 1.25rem;
}


/* Mobile:  text above image (text first) */
@media (max-width: 768px) {
  .intro,
  .footer{
    flex-direction: column;   
    align-items: stretch;
    gap: 2.5rem;
    margin: 2rem auto;
    padding: 1rem;
  }

  .intro-text,
  .footer-text{
    width: 100%;
  }

  .intro img,
  .footer img{
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
  }

  .intro .intro-text{ order: 1; }
  .intro > img{       order: 2; }

  .footer .footer-text{ order: 1; }
  .footer > img{       order: 2; }
}


  /* BRANDS PAGE CSS  */


  /* page container centering */
  .brand-list-page.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }



  /* FLEX grid */
  .brand-logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   
    align-items: stretch;      
    gap: 1rem;
    margin: 0 auto;
  }

  /* Card */
  .brand-logo {
    flex: 1 1 clamp(140px, 18vw, 220px); 
    max-width: 260px;                   
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 18px;
    min-height: 110px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  }

  .brand-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    opacity: .9;
    transition: filter .2s ease, opacity .2s ease;
  }

  .brand-logo:hover,
  .brand-logo:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border-color: rgba(0,0,0,.12);
    background: #fafafa;
    outline: none;
  }

  .brand-logo:hover img,
  .brand-logo:focus-visible img {
    filter: none;
    opacity: 1;
  }


.brand-coverImage img{
  width:150px;     
  height:73px;      
  object-fit:contain;
  display:block;
  image-rendering:crisp-edges;
}



  @media (max-width: 480px) {
    .brand-logo { flex-basis: 46%; } /* two per row on tiny screens */
  }

  @media (prefers-reduced-motion: reduce) {
    .brand-logo, .brand-logo img { transition: none; }
  }
