/* Your Listings Page Styles */
.listing {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.listing h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #fff;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #fff;
}

.product-info p {
  color: #aaa;
  margin-bottom: 12px;
  font-size: 14px;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
  color: orange;
  margin-bottom: 10px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 12px;
  margin-bottom: 15px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.view-details-btn, .edit-listing-btn {
  background-color: #333;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex: 1;
  text-align: center;
}

.view-details-btn:hover {
  background-color: orange;
}

.edit-listing-btn:hover {
  background-color: #4a90e2;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background-color: #222;
  border-radius: 10px;
  margin-bottom: 30px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #666;
}

.empty-state h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.empty-state p {
  color: #888;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.create-listing-button {
  background-color: orange;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.create-listing-button:hover {
  background-color: darkorange;
}

/* Product Details Modal */
.product-modal {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.product-modal-content {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .product-modal-content {
    flex-direction: row;
  }
}

.product-modal-images {
  flex: 1;
  padding: 20px;
  background-color: #1a1a1a;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: 15px;
  background-color: #262626;
  border-radius: 8px;
  overflow: hidden;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
  background: #333;
  border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: orange;
}

.thumbnail img, .thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-info {
  flex: 1;
  padding: 20px;
  background-color: #222;
}

.product-modal-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
}

.modal-price {
  font-size: 22px;
  font-weight: bold;
  color: orange;
  margin-bottom: 20px;
}

.modal-details {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  margin-bottom: 10px;
}

.detail-label {
  width: 100px;
  color: #888;
  font-size: 14px;
}

.detail-value {
  color: #fff;
  font-size: 14px;
}

.modal-description {
  margin-bottom: 20px;
}

.modal-description h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.modal-description p {
  color: #aaa;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 15px;
}

.edit-listing-btn, .delete-listing-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
}

.edit-listing-btn {
  background-color: #4a90e2;
  color: white;
}

.edit-listing-btn:hover {
  background-color: #3a7bc8;
}

.delete-listing-btn {
  background-color: #333;
  color: #ff4d4d;
}

.delete-listing-btn:hover {
  background-color: #ff4d4d;
  color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-info h3 {
    font-size: 16px;
  }
  
  .product-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .listing h2 {
    font-size: 22px;
  }
  
  .product-info h3 {
    font-size: 14px;
  }
  
  .product-price {
    font-size: 16px;
  }
}