/* =========================================================
   1. GLOBAL COLORS & BASE STYLES
   ========================================================= */
body {
  background-color: var(--site-bgcolor);
  color: var(--site-fontcolor);
  line-height: 1.6;
}

/* Logo */
.navbar-brand .site-logo {
  max-height: 50px;
}


/* =========================================================
   2. NAVBAR & DROPDOWN
   ========================================================= */
.navbar {
  background-color: var(--site-bgcolor) !important;
  color: var(--site-fontcolor) !important;
}

.navbar .nav-link,
.navbar-brand,
.dropdown-item {
  color: var(--site-fontcolor) !important;
  text-decoration: none !important;
  background-color: transparent !important;
}

.navbar .nav-link:hover,
.dropdown-item:hover {
  text-decoration: underline;
  color: var(--site-fontcolor) !important;
}

.navbar .nav-link:focus,
.navbar .nav-link:active {
  color: var(--site-fontcolor) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

.dropdown-menu {
  background-color: var(--site-bgcolor) !important;
  border-color: #f5f5f5 !important;
  margin-top: 0;
}

/* Hover-open behavior for desktop */
@media (hover:hover) and (pointer:fine) {
  .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
  }
}


/* =========================================================
   3. CARDS & AUCTION STATUS
   ========================================================= */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auction-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  z-index: 10;
}

.status-active       { background-color: #28a745; }
.status-successful   { background-color: #17a2b8; }
.status-unsuccessful { background-color: #dc3545; }
.status-upcoming     { background-color: #ffc107; color: #212529; }


/* =========================================================
   4. IMAGES (Card, Auction, Modal, Seller)
   ========================================================= */
img.card-img-top {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  margin: auto;
  display: block;
}

.auction-image {
  max-width: 200px;
}

/* Seller logo */
.seller-logo {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Auction image thumbnails */
.auction-images {
  text-align: center;
}

.auction-images img {
  width: 100px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin: 5px;
}

@media (min-width: 768px) {
  .auction-images img {
    width: 150px;
  }
}

/* Modal images */
.modal-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}


/* =========================================================
   5. COUNTDOWN STYLES (Neutral, shared sitewide)
   ========================================================= */
.countdown-timer {
  margin: 15px 0;
  display: inline-block;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--site-fontcolor);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.countdown-box {
  display: inline-block;
  background-color: #f8f9fa;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  min-width: 50px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.countdown-number { font-weight: 700; color: #212529; font-size: 1.1rem; }
.countdown-label  { font-size: 0.7rem; color: #6c757d; }

.countdown-timer.expired {
  background-color: #6c757d;
}


/* =========================================================
   6. RESERVE STATUS LABEL
   ========================================================= */
.reserve-status {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
}

.reserve-met     { background-color: #28a745; }
.reserve-not-met { background-color: #dc3545; }


/* =========================================================
   7. BUTTONS (Bootstrap harmonization)
   ========================================================= */
.btn-primary,
.btn-danger {
  font-weight: 600;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: #007bff;
  border: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #dc3545;
  border: none;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #b02a37;
  transform: translateY(-1px);
}


/* =========================================================
   8. STRIPE / PAYMENT FORMS
   ========================================================= */
.card-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease;
}

.card-container:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#card-element {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background: white;
  width: 100%;
}

#payment-form button {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
}

#payment-form button:hover {
  background-color: #0056b3;
}


/* =========================================================
   9. TICKER
   ========================================================= */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background: #f8f9fa;
  padding: 10px 0;
  position: relative;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 200px;
  margin: 0 10px;
}

.ticker-item img {
  width: 150px;
  height: 100px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.ticker-item span {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* =========================================================
   10. HERO IMAGE (used in add_product.php)
   ========================================================= */
.hero-img {
  width: 80%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .hero-img {
    width: 70%;
    max-width: 1000px;
  }
}

@media (max-width: 768px) {
  .hero-img {
    width: 90%;
  }
}


/* =========================================================
   11. SELLER HUB & PRODUCT EDIT PREVIEWS
   ========================================================= */
.sellerhub-logo-preview {
  max-width: 200px;
  height: auto;
  display: block;
  margin-top: 0.5rem;
}

.product-edit-thumb {
  max-width: 120px;
  height: auto;
  display: block;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* =========================================================
   12. PRODUCT DETAIL PAGE STYLES
   ========================================================= */
.product-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.product-images img {
  width: 100px;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

@media (min-width: 768px) {
  .product-images img {
    width: 150px;
  }
}

.modal img {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

/* Optional: for consistent text styling in pages like Privacy Policy, Terms, etc. */
.content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--site-fontcolor);
  white-space: pre-wrap;
}

/* Optional: Payment settings wrapper (used in paypal.php and stripe pages) */
.payment-settings {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* =========================================================
   13. COLLECTIONS PAGE STYLES
   ========================================================= */
.description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zebra:nth-child(odd) {
  background-color: #f9f9f9;
}

.zebra:nth-child(even) {
  background-color: #ffffff;
}

.collection-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin: auto;
  display: block;
}


