/* ===============================
   TEXACO TOYS – BASE STYLES
   =============================== */

/* 1. Standard page links */
a, a:visited { 
  color: #0066CC; 
  text-decoration: underline; 
}

a:hover { 
  color: #000000; 
  text-decoration: underline; 
}

/* Keep your utility colors white as intended */
.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; }

.BlockColors2, .BlockColors3, .FooterColors { color:#ffffff; text-decoration:underline; }
a.BlockColors2:link, a.BlockColors2:visited, a.BlockColors2:active,
a.BlockColors3:link, a.BlockColors3:visited, a.BlockColors3:active,
a.FooterColors:link, a.FooterColors:visited, a.FooterColors:active { color:#ffffff; }

/* ======================================================
   EBAY EMBEDDED LISTINGS – HARD 3 COLUMN LAYOUT
   ====================================================== */

.ebay-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
}

.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);
}

.ebay-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 0;
  display: block;
}

.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;
}

.ebay-price {
  margin: 0;
  padding: 0 12px 12px;
  color: #222222;
  font-weight: bold;
  font-size: 16px;
}

/* Match Amoco typography */
.ebay-title,
.ebay-title a,
.ebay-price{
  font-family: Verdana, Arial, sans-serif;
}

/* ===============================
   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;
  }
}

