/* ===============================
   SUNOCO TOYS – BASE STYLES
   =============================== */

/* -------------------------------
   Links - FIXED COLOR HERE
   ------------------------------- */
a, a:visited { 
  color: #0066CC; 
  text-decoration: underline; 
}

a:hover { 
  color: #000000; 
  text-decoration: underline; 
}

/* -------------------------------
   Utility Link Color Classes
   ------------------------------- */

/* White link text (with black hover) */
.BlockColors { color: #ffffff; text-decoration: underline; }
a.BlockColors:link, a.BlockColors:visited, a.BlockColors:active { color: #ffffff; }
a.BlockColors:hover { color: #000000; text-decoration: underline; }

/* White link text (stay white on hover) */
.BlockColors2 { color: #ffffff; text-decoration: underline; }
a.BlockColors2:link, a.BlockColors2:visited, a.BlockColors2:active { color: #ffffff; }
a.BlockColors2:hover { color: #ffffff; text-decoration: underline; }

/* White link text (stay white on hover) */
.BlockColors3 { color: #ffffff; text-decoration: underline; }
a.BlockColors3:link, a.BlockColors3:visited, a.BlockColors3:active { color: #ffffff; }
a.BlockColors3:hover { color: #ffffff; text-decoration: underline; }

/* Footer links */
.FooterColors { color: #ffffff; }
a.FooterColors:link, a.FooterColors:visited, a.FooterColors:active { color: #ffffff; }


/* ======================================================
   EBAY EMBEDDED LISTINGS – HARD 3 COLUMN LAYOUT
   ====================================================== */

/* EXACTLY 3 columns on desktop */
.ebay-thumbnails{
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
}

/* Card */
.ebay-item{
  text-align: center;
  border: 1px solid #ddd;
  padding: 0;
  border-radius: 10px;
  background-color: #fff;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
}

.ebay-item a{
  display: block;
}

.ebay-item:hover{
  box-shadow: 4px 4px 0 rgba(0,0,0,0.45);
  transform: translateY(-1px);
}

/* Image */
.ebay-image{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 0;
  display: block;
  margin: 0;
}

/* Title */
.ebay-title{
  margin: 0;
  padding: 10px 12px 4px;
  line-height: 1.25;
}

.ebay-title a{
  text-decoration: underline;
  color: #0066CC;
  font-weight: bold;
  font-size: 15px;
}

/* Price */
.ebay-price{
  margin: 0;
  padding: 0 12px 12px;
  color: #222222;
  font-weight: bold;
  font-size: 16px;
}

/* ===============================
   MOBILE – RESPONSIVE GRID (BALANCED 3 ACROSS)
   =============================== */

/* Phones portrait: FORCE 3 columns and make them fill the available column width */
@media (max-width: 700px){
  .ebay-thumbnails{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    justify-items: stretch;

    gap: 10px;
    margin: 0 auto;
    padding: 0 8px;
  }

  .ebay-item{
    width: 100%;
  }

  .ebay-image{
    height: 135px;
  }

  .ebay-title a{
    font-size: 13px;
  }

  .ebay-price{
    font-size: 14px;
  }
}

/* Very small phones: fall back to 1 column */
@media (max-width: 380px){
  .ebay-thumbnails{
    grid-template-columns: 1fr;
  }

  .ebay-image{
    height: 200px;
  }
}
