/**
 * Custom Product Page Styles
 * 
 * This file contains custom styles for product page enhancements
 */

/* ============================================
   Product Stock Badge
   ============================================ */

.product-stock-badge {
  position: absolute;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  top: 20px;
}

.stock-badge {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 25px;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* In Stock - Orange (matching design) */
.stock-badge--in-stock {
  background-color: #f58220;
}

/* Available on backorder - Yellow/Orange */
.stock-badge--available {
  background-color: #ffa500;
}

/* Out of Stock - Red */
.stock-badge--out-of-stock {
  background-color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .product-stock-badge {
    margin-bottom: 15px;
    position: absolute;
    z-index: 10;
    margin-top: 15px;
    left: 10px;
  }

  .stock-badge {
    padding: 6px 20px;
    font-size: 14px;
  }

  .mobile-cover-product {
    gap: 0;
  }

  .mobile-cover-product .mobile-thumbnails {
    padding-top: 15px;
    background: #fff5e2 !important;
  }

  .mobile-cover-product .mobile-thumbnails__list {
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    list-style: none;
    align-items: center;
    scroll-snap-type: x proximity;
  }

  .mobile-cover-product .mobile-thumbnails__list::-webkit-scrollbar {
    height: 4px;
  }

  .mobile-cover-product .mobile-thumbnails__list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
  }

  .mobile-cover-product .mobile-thumbnails__list .thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 100px;
    overflow: hidden;
    scroll-snap-align: center;
  }

  .mobile-cover-product .mobile-thumbnails__list .thumbnail img {
    border-radius: inherit;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}