:root {
  --brand: #0d6d7f;
  --brand-dark: #0b5a6a;
  --accent: #ff8c00;
  --text: #1f2937;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.slider-wrap {
  width: 90%;
  margin: 0 auto 12px;
  transition: all 0.3s ease;
}

.swiper {
  width: 100%;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 10px;
}

.products-section {
  width: 100%;
  padding: 14px 8px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.product-card {
  border: 1px solid #cfd6de;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  background: #fff;
  cursor: pointer;
}

.product-card.new {
  opacity: 0;
  transform: translateY(20px);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.product-card h4 {
  font-size: 14px;
  margin: 4px 0;
  color: var(--text);
}

.product-card p {
  font-size: 12px;
  margin: 4px 0;
}

.product-card button {
  padding: 6px 10px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.3s ease;
}

.product-card button:hover {
  background: var(--accent);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card:hover img {
  opacity: 0.9;
  transform: scale(1.05);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.discount-badge {
  position: absolute;
  top: 6px;
  left: 5px;
  background: green;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.company-header {
  background: linear-gradient(135deg, #0d6d7f, #13a89e);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  padding: 6px;
  border-radius: 6px 6px 0 0;
  margin: -6px -6px 8px -6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.company-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.company-header:hover::after {
  left: 100%;
}

.company-header:hover {
  background: linear-gradient(135deg, #13a89e, #0d6d7f);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transform: scale(1.03);
}

.load-more-wrap {
  text-align: center;
  margin: 14px 0;
}

.load-more-wrap button {
  padding: 8px 14px;
  font-size: 14px;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.main {
  flex: 1 0 auto;
}

footer {
  margin-top: 20px;
}

/* Responsive */
@media(max-width:1200px){.products-grid{grid-template-columns:repeat(4,1fr);}}
@media(max-width:900px){.products-grid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:600px){.products-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){
  .products-grid{grid-template-columns:1fr;gap:4px;margin-top:4px;}
  .product-card img{height:150px;}
  .slider-wrap{width:100%;margin:0;padding:0;box-sizing:border-box;}
  .swiper{width:100%;height:auto;}
  .swiper-slide{display:flex;justify-content:center;align-items:center;}
  .swiper-slide img{width:100%;height:auto;object-fit:contain;border-radius:0;}
  .products-grid{gap:6px;margin-top:6px;}
  .product-card img{height:150px;}
  
  /* Mobile fix for top black close button in See Bids modal */
  #bidsModal > div > span {
    top: 20px !important;    /* move down from top edge */
    right: 12px !important;  /* keep right spacing */
    font-size: 22px !important; /* bigger for touch */
    z-index: 9999 !important;   /* ensure it’s above everything */
  }
 #bidsModal > div {
    max-height: 80vh;       /* smaller than full viewport */
    margin-top: 10vh;       /* push it slightly down from top */
    overflow-y: auto;       /* allow scroll inside modal if content is long */
  }	
}
