/* Shop Dialog Styles */
.shop-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.shop-dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shop-dialog {
  width: 90%;
  max-width: 800px; /* Increased from 700px */
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .shop-dialog {
    flex-direction: row;
    height: 500px; /* Increased from 450px */
  }
}

.shop-dialog-overlay.active .shop-dialog {
  transform: scale(1);
  opacity: 1;
}

.close-dialog {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: white;
  transition: background-color 0.3s ease;
}

.close-dialog:hover {
  background: rgba(255, 255, 255, 0.3);
}

.shop-dialog-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 768px) {
  .shop-dialog-content {
    flex-direction: row;
  }
}

.shop-dialog-image {
  width: 100%;
  height: 250px; /* Increased from 200px */
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .shop-dialog-image {
    width: 50%;
    height: 100%;
  }
}

.shop-dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-dialog-info {
  padding: 25px; /* Increased from 20px */
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #5e35b1;
  color: white;
}

@media (min-width: 768px) {
  .shop-dialog-info {
    width: 50%;
    padding: 35px; /* Increased from 30px */
  }
}

.shop-dialog-category {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px; /* Increased from 15px */
}

.shop-dialog-title {
  font-size: 2rem; /* Increased from 1.8rem */
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.shop-dialog-owner {
  font-size: 1.1rem; /* Increased from 1rem */
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px; /* Increased from 15px */
}

.shop-dialog-description {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px; /* Increased from 20px */
  flex-grow: 1;
}

/* Hide the shop-dialog-stats section */
.shop-dialog-stats {
  display: none;
}

.shop-dialog-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 12px 24px; /* Increased from 10px 20px */
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.shop-dialog-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Shop Cards - Making them larger and improving layout */
.floating-shops-container-wrapper {
  position: relative;
  overflow: hidden;
  padding: 30px 0; /* Increased from 20px */
  margin: 0 auto;
}

.floating-shops-container {
  display: flex;
  overflow-x: hidden;
  padding: 20px 0; /* Increased from 15px */
  gap: 20px; /* Increased from 15px */
  width: 100%;
}

.floating-shop-card {
  flex: 0 0 auto;
  width: 280px; /* Increased from 220px */
  border-radius: 16px; /* Increased from 12px */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: white;
  cursor: pointer;
  margin-bottom: 10px;
}

.floating-shop-card:hover {
  transform: translateY(-10px); /* Increased from -5px */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.shop-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shop-image {
  height: 180px; /* Increased from 140px */
  position: relative;
  overflow: hidden;
}

.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.floating-shop-card:hover .shop-image img {
  transform: scale(1.1); /* Increased from 1.05 */
}

.shop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)); /* Enhanced gradient */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 15px; /* Increased from 10px */
}

.shop-badge {
  background-color: #5e35b1;
  color: white;
  padding: 6px 14px; /* Increased from 4px 10px */
  border-radius: 20px;
  font-size: 0.85rem; /* Increased from 0.75rem */
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Added shadow */
}

.shop-info {
  padding: 18px; /* Increased from 12px */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.shop-name {
  font-size: 1.2rem; /* Increased from 1rem */
  font-weight: 600;
  margin-bottom: 8px; /* Increased from 5px */
  color: #333;
}

.shop-owner {
  font-size: 0.9rem; /* Increased from 0.8rem */
  color: #666;
}

/* Add a subtle hover effect to shop cards */
.floating-shop-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(94, 53, 177, 0), rgba(94, 53, 177, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.floating-shop-card:hover::after {
  opacity: 1;
}

/* Add a view details button that appears on hover */
.shop-view-details {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  background-color: #5e35b1;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-weight: 500;
  transition: bottom 0.3s ease;
}

.floating-shop-card:hover .shop-view-details {
  bottom: 0;
}

/* Continuous scrolling animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-280px * 4 - 20px * 4)); /* Adjust based on card width and gap */
  }
}

.floating-shops-container {
  animation: scroll 30s linear infinite;
}

.floating-shops-container:hover {
  animation-play-state: paused;
}
