/* Product container adjustments for fixed header */
.products-container {
  margin-top: 20px;
}

/* Product card styles */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background-color: #f8f9fa;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.product-brand-name {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.seller-client-list {
  max-height: 360px;
  overflow-y: auto;
}

.seller-client-option {
  border-left: 0;
  border-right: 0;
  padding: 14px 16px;
}

.product-subname {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.product-description {
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-weight: 700;
  color: #0d6efd;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* List view styles - Fixed */
.list-view .product-item {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.list-view .product-card {
  display: flex;
  flex-direction: row;
  margin-bottom: 15px;
}

.list-view .product-image-container {
  width: 150px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-view .product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Grid view styles */
.grid-view .product-card {
  margin-bottom: 20px;
}

/* Modal styles */
.product-modal-image {
  max-height: 250px;
  object-fit: contain;
}

.quantity-selector input {
  max-width: 70px;
}

.swal2-popup.bitus-order-choice {
  width: min(480px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--color-background-bitus);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(28, 92, 117, 0.18);
  font-family: inherit;
}

.bitus-order-choice .swal2-icon.swal2-question {
  margin: 0 auto 20px;
  border-color: var(--color-bitus);
  background-color: var(--color-background-bitus);
  color: var(--color-bitus);
}

.bitus-order-choice .swal2-title {
  padding: 0;
  color: var(--color-bitus);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.bitus-order-choice .swal2-html-container {
  margin: 12px 0 0;
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
}

.bitus-order-choice .swal2-actions {
  gap: 12px;
  width: 100%;
  margin: 24px 0 0;
}

.bitus-order-choice .swal2-actions .btn {
  flex: 1 1 160px;
  margin: 0;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.bitus-order-choice .btn-bitus:hover,
.bitus-order-choice .btn-bitus:active {
  background-color: #144a5e;
  color: var(--color-background-bitus);
}

.bitus-order-choice .bitus-order-choice-secondary {
  border: 1px solid var(--color-bitus);
  background-color: var(--color-background-bitus);
  color: var(--color-bitus);
}

.bitus-order-choice .bitus-order-choice-secondary:hover,
.bitus-order-choice .bitus-order-choice-secondary:active {
  background-color: var(--color-bitus);
  color: var(--color-background-bitus);
}

.bitus-order-choice .swal2-actions .btn:focus-visible {
  outline: 3px solid var(--color-bitus);
  outline-offset: 3px;
  box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  /* Mobile grid - 2 columns */
  .grid-view .product-item {
    width: 50%;
    max-width: 50%;
    flex: 0 0 50%;
  }

  /* List view on mobile */
  .list-view .product-card {
    flex-direction: row; /* Keep horizontal layout even on mobile */
  }

  .list-view .product-image-container {
    width: 100px; /* Smaller image on mobile */
  }
}
