/* ===============================
   AMOCO COLLECTIBLES – BASE STYLES
   =============================== */

/* Standard links */
a, a:visited { 
  color: #0066CC;
  text-decoration: underline; 
}

a:hover { 
  color: #000000; 
  text-decoration: underline; 
}

/* White nav/footer links */
.BlockColors,
.BlockColors2,
.BlockColors3,
.FooterColors {
  color: #ffffff;
  text-decoration: underline;
}

a.BlockColors:link,
a.BlockColors:visited,
a.BlockColors:active,
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;
}

a.BlockColors:hover { color: #000000; }
a.BlockColors2:hover,
a.BlockColors3:hover { color: #ffffff; }


/* ======================================================
   EBAY EMBEDDED LISTINGS – DESKTOP (HARD 3 COLUMN LOOK)
   ====================================================== */

/* EXACTLY 3 columns on desktop (your classic look) */
.ebay-thumbnails{
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  padding: 0;
}

/* Card (KEEP SHADOW BOX) */
.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;

  /* Strong black depth shadow (kept) */
  box-shadow: 2px 2px 0 rgba(0,0,0,0.35);
}

/* Clickable block */
.ebay-item a{
  display: block;
}

/* Hover effect (kept) */
.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;
  border-radius: 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;
}

/* Empty / error states */
.ebay-widget-empty,
.ebay-widget-error{
  color: #555;
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
}

/* Force widget typography to match site */
.ebay-title,
.ebay-title a,
.ebay-price{
  font-family: Verdana, Arial, sans-serif;
}


/* ===============================
   MOBILE – RESPONSIVE GRID
   ===============================
   Goal:
   - Phones portrait: allow 3 if it fits (else 2)
   - Very small phones: 1 column
   - Tablets / landscape phones: can show 3 if it fits
*/

/* Tablet-ish widths: allow 3 flexible columns if they fit */
@media (max-width: 900px){
  .ebay-thumbnails{
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    max-width: 96vw;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
  }
}

/* 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;   /* override desktop centering behavior */
    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;
  }
}
