/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #1a1a1a;
  color: #fff;
  line-height: 1.6;
}

/* Header styles */
header {
  background-color: #1a1a1a;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.menu-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  padding: 5px;
}

h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

h1 a {
  color: #fff;
  text-decoration: none;
}

.search-container {
  flex-grow: 1;
  max-width: 400px;
  margin: 0 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #333;
  border-radius: 20px;
  padding: 8px 15px;
}

.search-box svg {
  margin-right: 10px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: #888;
}

.auth-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sell-button {
  background-color: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sell-button:hover {
  background-color: #e05e00;
}

.login-button {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.login-button:hover {
  background-color: #444;
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.avatar-initials {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.user-dropdown {
  position: relative;
}

.username {
  font-weight: 600;
  color: #ff6b00;
  cursor: pointer;
  padding: 5px;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #222;
  min-width: 150px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
}

.user-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-link {
  display: block;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s;
}

.profile-link:hover {
  background-color: #333;
}

.logout-button {
  width: 100%;
  background-color: transparent;
  color: #ff4d4d;
  border: none;
  text-align: left;
  padding: 8px 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: #333;
}

.hidden {
  display: none !important;
}

/* Main content styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero section */
.hero {
  background-image: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2124&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.get-started-button {
  background-color: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.get-started-button:hover {
  background-color: #e05e00;
}

/* Categories section */
.categories {
  margin-bottom: 40px;
}

.categories h2, .trending h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.category-card {
  border-radius: 10px;
  overflow: hidden;
  height: 150px;
  cursor: pointer;
  transition: transform 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trending section */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.product-card {
  border-radius: 10px;
  overflow: hidden;
  background-color: #222;
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-info h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-info p {
  font-size: 0.8rem;
  color: #888;
}

.add-to-cart-btn {
  background-color: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 13px;
}

.add-to-cart-btn:hover {
  background-color: #e05e00;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #222;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  padding: 25px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #fff;
}

.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

.auth-tab {
  background: none;
  border: none;
  color: #888;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}

.auth-tab.active {
  color: #ff6b00;
  border-bottom: 2px solid #ff6b00;
}

.auth-form-container {
  position: relative;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: formFadeIn 0.3s ease-out;
}

@keyframes formFadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #ccc;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #333;
  color: #fff;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: #ff6b00;
}

.form-error {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-bottom: 15px;
  min-height: 20px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background-color: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-submit:hover {
  background-color: #e05e00;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-in-out;
  pointer-events: none;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-content {
  background-color: #222;
  color: #fff;
  border-left: 4px solid #ff6b00;
  border-radius: 4px;
  padding: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 280px;
}

.notification-icon {
  background-color: #ff6b00;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 0.9rem;
  font-weight: bold;
}

.notification-message {
  font-size: 0.95rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }
  
  .search-container {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
    width: 100%;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .category-grid, .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .notification {
    left: 20px;
    right: 20px;
  }
  
  .notification-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 300px;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .category-grid, .trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal-content {
    padding: 20px 15px;
  }
}

.listing{
  margin-left:60px;
}

/* Add this to your styles.css file */
.wishlist-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.wishlist-icon:hover {
  transform: scale(1.1);
}

.wishlist-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  transition: fill 0.2s ease;
}

.wishlist-icon.active svg {
  fill: #ff6b00;
  stroke: #ff6b00;
}

.product-card {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #333;
  border-radius: 20px;
  padding: 8px 15px;
}

.search-box svg {
  margin-right: 10px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  width: 100%;
  outline: none;
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: #888;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
}

.search-button svg {
  width: 20px;
  height: 20px;
  stroke: #888;
}

.search-button:hover svg {
  stroke: #fff;
}
