.magasin-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    
    position: relative; /* ou static */
    z-index: 1;
}

.magasin-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  /* width: 100px; */
  /* height: 100px; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  position: relative;
  z-index: 1;
  text-align: center;
  transition: transform 0.2s ease;
}
.shop-name {
  font-size: clamp(8px, 4vw, 14px); /* Responsive font size */
  color: #e2a92f;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* max-width: 100%; */
  line-height: 1.2;
}

.magasin-card:hover {
    transform: scale(1.05);
}

.magasin-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.status {
    display: block;
    margin: 10px 0;
    font-weight: bold;
}

.status.active {
    color: green;
}

.status.inactive {
    color: red;
}

.btn-admin {
    display: inline-block;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  padding: 16px;
  background: linear-gradient(to bottom right, #e0f7fa, #e8f5e9);
}

.shop-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  position: relative;
  text-align: center;
  transition: transform 0.2s ease;
}

.shop-card:hover {
  transform: scale(1.05);
}

.shop-card img.logo {
  max-width: 60px;
  max-height: 30px;
  object-fit: contain;
  margin-top: 4px;
}

.shop-card button {
  background-color: #ff7f00;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  cursor: pointer;
}

.shop-card .cart-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-size: 14px;
  color: #333;
}