@tailwind base;
@tailwind components;
@tailwind utilities;

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center; 
  align-items: center; 
  z-index: 999;
}

#paypal-button-container.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.overlay-content {
  text-align: center;
  padding: 20px;
  background-color: #F1F2F3;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.loading-icon {
  max-width: 100%;
}

.loading-text {
  margin-top: 10px;
  font-weight: bold;
}

.visible {
  display: flex; 
}


.categories-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.categories-buttons .category-btn {
    flex: 1;
    padding: 10px;
    margin: 5px;
    background-color: #e1e1e1;
    text-decoration: none;
    color: black;
    border-radius: 5px;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.3s;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.categories-buttons .category-btn.active {
    background-color: #FF4500;
    color: white;
}

@media (max-width: 576px) {
    .categories-buttons .category-btn {
        flex: 0 0 calc(33.33% - 10px); 
    }
}

.overflow-hidden {
    overflow: hidden;
  }
  .product-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-text-overflow: ellipsis;
  }
  .product-card:hover {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
  }

.product-card:not(.out-of-stock):hover {
    transform: scale(1.05); 
    transition: transform 0.1s ease-in-out;
}

.product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.best-seller-tag {
    position: absolute;
    top: 10px; 
    left: 10px;
    background-color: #FF4500; 
    color: white;
    padding: 2px 2px;
    font-size: 10px;
    border-radius: 5px;
    z-index: 10; 
}