.lampeggia {
  animation: flash-bg 1.0s ease-in-out;
}

.congelato-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    background-color: rgb(63, 130, 255);
    color: white;
    font-size: 28px;
    font-weight: bold;
    padding: 0px 10px;
    border: 4px solid white;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
    
}

.bid-btn:disabled {
    background-color: #a8a8a8 !important; 
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.uk-switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 24px !important;
}

.uk-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.uk-switch-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    transition: .4s !important;
    border-radius: 24px !important;
}

.uk-switch-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .4s !important ;
    border-radius: 50% !important ;
}

.uk-switch input:checked + .uk-switch-slider {
    background-color: #0F8352 !important;
}

.uk-switch input:checked + .uk-switch-slider:before {
    transform: translateX(26px) !important;
}

@keyframes flash-bg {
  0%   { background-color: #0b7e31; }
  100% { background-color: transparent; }
}

.auction-card {
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 10px;
  border-width: 2px;
  border-style: solid;
  border-color: #d4d4d4;
}

.auction-header {
  width: 100%;
  height: 150px; 
  background-color: #ffffff; 
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px;
  padding-bottom: 10px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;      
  object-position: center;  
  display: block;
}

.badge.live {
  position: absolute;
  top: 10px;
  left: 10px;
  background: red;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.auction-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-align: center;
}

.auction-timer {
  font-size: 20px;
  font-weight: bold;
  color: #E60000;
  text-align: center;
  margin-top: -5px;
}

.auction-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.price {
  font-weight: bold;
  color: #0F8352;
}

.auction-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 6px;
}

.price-box {
  background: #f0f0f0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}

.price-box img {
  height: 17px;
  max-width: 100%;
  flex-shrink: 0;
}

.auto-bid {
  background: #fff;
  border: 1px solid #ccc;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #555;
  display: flex;
  gap: 5px;
  justify-content: center;
}

.auto-bid img {
  height: 17px;
}

.bid-btn {
  flex-grow: 1;
  background: #0F8352;
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.auction-section {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

@media (max-width: 768px) {
  .auction-card {
    max-width: 100%;
  }

  .auction-footer {
    align-items: stretch;
  }

  .auto-bid, .bid-btn {
    width: 100%;
    text-align: center;
  }

  .price-box {
    text-align: center;
    font-size: 12px;
    justify-content: center;
    word-break: break-word;
  }

  .product-image {
    height: 120px;
  }

  .auction-section {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.auto-bid-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;
  padding: 0 12px;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background-color: #fff;
  display: flex;
}

.auto-bid-option {
  background: linear-gradient(to bottom, #FFD24D, #FFA500);
  border: none;
  border-radius: 5px;
  color: #000;
  font-weight: 600;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.1s;
}

.auto-bid-option:active {
  transform: scale(0.95);
}

.auto-bid.active {
  background-color: #e6f7f0;
  border: 1px solid #0F8352;
  color: #0F8352;
}

.scheduled-label {
  background: #bbb;
  color: #6d6d6d;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  border-top: 2px solid #6d6d6d;
  border-bottom: 2px solid #6d6d6d;
}

.scheduled-info {
  text-align: center;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.sold-stamp {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e60000;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 6px;
  z-index: 2;
}

.winner-info {
  text-align: center;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.winner-name {
  display: block;
  font-weight: 600;

}

.winner-text {
  font-weight: bold;
  color: #888;
  font-size: 14px;
}

.scheduled-label-winner {
  background: #fdcf02;
  color: #806800;
  font-weight: bold;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  border-top: 2px solid #806800;
  border-bottom: 2px solid #806800;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.11); 
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sold-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
  font-size: 28px;
  font-weight: bold;
  padding: 0px 10px;
  border: 4px solid white;
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
}





