* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fefefe;
  position: relative;
  z-index: 0;
}

.background-image {
  position: fixed;
}

.overlay {
  min-height: 100vh;
  padding: 25px 10px;
  background: url('./BG/1440x1024-desktop-dog.png') no-repeat bottom center;
  background-size: cover;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

header {
  text-align: left;
  margin-bottom: 15px;
}

header img {
  max-width: 700px;
  height: auto;
  width: 100%;
}

.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.product {
  width: 100%;
  height: auto;
  max-width: 260px;
}

.retailer {
  margin-top: -8px;
}

.retailer img {
  width: 100%;
  max-width: 260px;
  display: block;
  margin-bottom: -8px;
}

/* Tablet (smaller desktop) */
@media (max-width: 1200px) {
  .overlay {
    background: url('./BG/1440x1024-desktop-dog.png') no-repeat right center;
    background-size: cover;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .background-image {
    background: url('./BG/puppy_background_2x.png') no-repeat bottom center;
     background-size: cover;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; 
  }

  .overlay {
    padding: 0px;
    background: none;
  }
  .container .card:nth-child(1) { order: 2; }  
  .container .card:nth-child(2) { order: 1; }
  .container .card:nth-child(3) { order: 4; }
  .container .card:nth-child(4) { order: 3; }

  .container {
    gap: 16px;
    overflow: hidden;
  }

  header {
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-bottom: -20px;
  }

  header img {
    width: 480px;
    position: relative;
    bottom: 35px;
  }

  .card {
    align-items: center;
  }
}
