*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: 100%;
  margin: auto;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.02);
  min-height: 100vh;
  backdrop-filter: blur(10px);
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
.logo {
  font-size: 15px;
  font-weight: bold;
  padding-left: 5px;
}
nav {
  display: inline-block;
  gap: 20px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
a {
  text-decoration: none;
  color: #333;
}

nav ul li a:hover {
  color: #007bff;
  font-size: large;
}
nav ul li a.active {
  color: #007bff;
  font-weight: bold;
}
/* header {
  background-color: #f8f9fa;
  text-align: center;
  align-content: center;
  margin: 0 auto;
  height: 90vh;
} */
header {
    background-color: #222;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: white;
  }

  .menu-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
  }

  .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
  }

  .nav-links a:hover::before {
    left: 100%;
  }

  .nav-links a:hover {
    color: #ff6b9d;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
    border-color: rgba(255, 107, 157, 0.5);
  }

  .nav-links a.active {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    border-color: #ff6b9d;
  }

  .nav-links.show {
    display: flex;
  }

  .top-bar {
    background: #2a2a2a;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 15px 15px;
    position: relative;
    z-index: 10;
  }

  .search-bar input {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    width: 200px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
  }

  .search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  .category-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .category-bar a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .category-bar a:hover {
    background: rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
    transform: translateY(-2px);
  }

  .hero {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
  }

  .hero p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .hero button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
  }

  .hero button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
  }

  .icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('illustration-icons.png'); /* Replace with actual icon background */
    background-repeat: repeat;
    opacity: 0.05;
    z-index: -1;
  }
.section-gray {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

  .categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
  }

  .category {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .category a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .category a:hover {
    color: #0077cc;
  }

  .quote {
    font-style: italic;
    padding: 2rem;
    text-align: center;
  }

  .reviews {
    padding: 2rem;
    text-align: center;
  }

  .review-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .review-item {
    width: 150px;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  .info-section {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 2rem;
    justify-content: center;
    text-align: left;
  }

  .info-text {
    max-width: 400px;
  }
  .btn {
    padding: 0.5rem 1rem;
    background: #ccc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
.buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
  }
#contact {
  text-align: center;
  padding: 20px;
  height: 90vh;
}
footer {
    background: #333;
    color: #fff;
    padding: 2rem;
    text-align: center;
  }
footer a {
    color: #fff;
    margin: 0 0.5rem;
    text-decoration: none;
  }

  footer a:hover {
    text-decoration: underline;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-socials {
    margin-top: 1rem;
  }

  /* Profile Page Styles */
  .header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }

  .logo {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .search-bar {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }

  .search-icon {
    font-size: 0.9rem;
    color: #666;
  }

  .search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
  }

  .clear-icon {
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* push to right */
  }

  .icon {
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.2s ease;
  }

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

  .icon.active {
    color: #6c63ff;
  }

  .profile-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
  }

  .profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .profile-picture {
    text-align: center;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 auto 1rem;
    border: 3px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
  }

  .avatar-placeholder {
    color: #999;
  }

  .change-photo-btn {
    background: #6c63ff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .profile-info {
    flex: 1;
    text-align: left;
  }

  .profile-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
  }

  .profile-email {
    color: #666;
    margin-bottom: 0.5rem;
  }

  .profile-location {
    color: #666;
    margin-bottom: 0.5rem;
  }

  .member-since {
    color: #999;
    font-size: 0.9rem;
  }

  .profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #6c63ff;
  }

  .stat-label {
    font-size: 0.9rem;
    color: #666;
  }

  .profile-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .profile-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .profile-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
  }

  .profile-form {
    max-width: 100%;
  }

  .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    flex: 1;
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
  }

  .form-group textarea {
    border-radius: 10px;
    resize: vertical;
    min-height: 80px;
  }

  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  }

  .preferences {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .preference-item {
    display: flex;
    align-items: center;
  }

  .toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
  }

  .toggle-label input[type="checkbox"] {
    display: none;
  }

  .toggle-slider {
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s;
  }

  .toggle-slider:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
  }

  .toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background-color: #6c63ff;
  }

  .toggle-label input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
  }

  .account-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .action-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e1e1e1;
  }

  .action-btn.secondary:hover {
    background: #e9ecef;
  }

  .action-btn.danger {
    background: #dc3545;
    color: white;
  }

  .action-btn.danger:hover {
    background: #c82333;
  }

  .save-button {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 1rem;
  }

  .save-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .save-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  /* Responsive design for profile page */
  @media (max-width: 600px) {
    .profile-content {
      margin: 1rem;
      padding: 1rem;
    }
    
    .profile-title {
      font-size: 2rem;
    }
    
    .search-bar input {
      width: 150px;
    }
    
    .form-group input[name="zipcode"] {
      width: 100%;
    }
  }

  /* Favorites Page Styles */
  .favorites-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .favorites-header {
    text-align: left;
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .favorites-icon {
    font-size: 3rem;
    display: block;
    color: #ff6b9d;
  }

  .favorites-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    text-align: left;
  }

  .favorites-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
  }

  /* Loading State */
  .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Empty State */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin-top: 2rem;
  }

  .empty-icon {
    font-size: 4rem;
    color: #ff6b9d;
    margin-bottom: 1rem;
  }

  .empty-state h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
  }

  .empty-state p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
  }

  .browse-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
  }

  .browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  /* Error State */
  .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 3rem;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
  }

  .error-icon {
    font-size: 4rem;
    color: #e53e3e;
    margin-bottom: 1rem;
  }

  .error-state h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
  }

  .error-state p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
  }

  .retry-btn {
    background: #e53e3e;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .retry-btn:hover {
    background: #c53030;
  }

  /* Favorites List */
  .favorites-list {
    width: 100%;
  }

  .favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
  }

  .favorite-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .favorite-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }

  .favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .remove-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .remove-favorite:hover {
    background: #ff6b9d;
    color: white;
    transform: scale(1.1);
  }

  .favorite-info {
    padding: 1.5rem;
  }

  .favorite-info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.5rem 0;
  }

  .favorite-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
  }

  .favorite-location {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
  }

  .favorite-owner {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 1rem 0;
  }

  .view-item-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
  }

  .view-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  /* Responsive design for favorites page */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background: rgba(42, 42, 42, 0.95);
      backdrop-filter: blur(20px);
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      z-index: 999;
      padding: 1rem;
      gap: 0.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.show {
      display: flex;
    }

    .nav-links a {
      padding: 1rem;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      text-align: center;
      font-size: 1rem;
    }

    .nav-links a:hover {
      background: rgba(255, 107, 157, 0.2);
      border-color: rgba(255, 107, 157, 0.3);
    }

    .menu-icon {
      display: block;
    }

    .favorites-content {
      padding: 1rem;
    }

    .favorites-header h1 {
      font-size: 2rem;
    }

    .favorites-icon {
      font-size: 2.5rem;
    }

    .favorites-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .empty-state,
    .error-state {
      padding: 2rem;
    }

    .empty-icon,
    .error-icon {
      font-size: 3rem;
    }
  }

  /* What is Stuff Swap Page Styles */
  .map-placeholder {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .map-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .map-content p {
    font-size: 1.1rem;
    opacity: 0.9;
  }

  .intro {
    text-align: center;
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
  }

  .intro h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
  }

  .intro p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .hashtags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
  }

  .hashtags span {
    background: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .search-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
  }

  .search-section input {
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 25px;
    font-size: 1rem;
    min-width: 200px;
  }

  .search-section input:focus {
    outline: none;
    border-color: #6c63ff;
  }

  .search-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .items-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
  }

  .error {
    text-align: center;
    padding: 2rem;
    color: #e53e3e;
    font-size: 1.1rem;
  }

  .no-items {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 15px;
  }

  .no-items h3 {
    color: #333;
    margin-bottom: 1rem;
  }

  .no-items p {
    color: #666;
  }

  .item-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
  }

  .item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .item-image {
    height: 200px;
    overflow: hidden;
  }

  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .item-info {
    padding: 1.5rem;
  }

  .item-info h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 0.5rem 0;
  }

  .item-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
  }

  .item-category,
  .item-condition {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
  }

  .view-item-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin-top: 1rem;
  }

  .view-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  /* Responsive design for what is Stuff Swap page */
  @media (max-width: 768px) {
    .intro h1 {
      font-size: 2rem;
    }

    .map-placeholder {
      padding: 2rem;
      margin: 1rem 0;
    }

    .map-content h2 {
      font-size: 1.5rem;
    }

    .search-section {
      flex-direction: column;
      align-items: center;
    }

    .search-section input {
      min-width: 250px;
    }

    .hashtags {
      gap: 0.5rem;
    }

    .hashtags span {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
    }
  }

  /* Home Page Styles */
  .hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-content {
    max-width: 800px;
    z-index: 2;
  }

  .hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2rem;
  }

  .hero p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .hero-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
  }

  .icon-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
  }

  .icon-item:nth-child(1) { top: 10%; left: 10%; }
  .icon-item:nth-child(2) { top: 20%; right: 15%; }
  .icon-item:nth-child(3) { top: 50%; left: 5%; }
  .icon-item:nth-child(4) { top: 60%; right: 10%; }
  .icon-item:nth-child(5) { bottom: 30%; left: 15%; }
  .icon-item:nth-child(6) { bottom: 20%; right: 20%; }
  .icon-item:nth-child(7) { bottom: 10%; left: 25%; }
  .icon-item:nth-child(8) { bottom: 40%; right: 5%; }

  /* What is Stuff Swap Section */
  .what-is-section {
    padding: 4rem 2rem;
    background: white;
  }

  .what-is-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
  }

  .what-is-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
  }

  .what-is-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
  }

  /* Swap Now Section */
  .swap-now-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 100%);
    text-align: center;
  }

  .swap-now-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
  }

  .swap-now-section h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: normal;
  }

  .category-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    overflow-x: auto;
    padding: 1rem 0;
  }

  .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
  }

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

  .category-item:hover .category-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .category-item:hover .category-image.swap-now {
    border-color: #5a52d5;
    background: #f8f9ff;
  }

  .category-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

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

  .category-image.swap-now {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #6c63ff;
  }

  .swap-arrow {
    font-size: 2.5rem;
    color: #6c63ff;
    font-weight: bold;
  }

  .category-item span {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
  }

  .tagline {
    font-size: 1rem;
    color: #999;
    font-style: italic;
    margin-top: 2rem;
    text-align: center;
  }

  /* Reviews Section */
  .reviews-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  }

  .reviews-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .reviews-header h2 {
    font-size: 3rem;
    color: #333;
    margin: 0;
    font-weight: bold;
    margin-bottom: 1rem;
  }

  .reviews-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
  }

  .review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .review-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    color: #e3f2fd;
    font-family: serif;
    line-height: 1;
  }

  .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }

  .review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid #f8f9fa;
  }

  .review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .review-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
  }

  .review-stars {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #ffc107;
  }

  .review-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
  }

  .review-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
  }

  .tag:hover {
    transform: scale(1.05);
  }

  .tag.yellow {
    background: #fff3cd;
    color: #856404;
  }

  .tag.green {
    background: #d4edda;
    color: #155724;
  }

  .tag.purple {
    background: #e2d9f3;
    color: #6f42c1;
  }

  .tag.blue {
    background: #d1ecf1;
    color: #0c5460;
  }

  .tag.pink {
    background: #f8d7da;
    color: #721c24;
  }

  /* Main Footer */
  .main-footer {
    background: #2a2a2a;
    color: white;
    padding: 4rem 2rem 2rem;
    border-radius: 15px;
    margin: 2rem;
    position: relative;
    overflow: hidden;
  }

  .main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="30" r="1.5" fill="%23ffffff" opacity="0.08"/><circle cx="20" cy="80" r="3" fill="%23ffffff" opacity="0.06"/><polygon points="80,10 85,15 80,20" fill="%23ffffff" opacity="0.1"/><path d="M5,70 Q15,60 25,70" stroke="%23ffffff" stroke-width="0.5" opacity="0.1" fill="none"/></svg>');
    pointer-events: none;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
  }

  /* Left Section - Branding */
  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
  }

  .logo-accent {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b9d;
  }

  .footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
  }

  .footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    margin-top: auto;
  }

  /* Middle Section - Newsletter */
  .footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-newsletter h3 {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .footer-newsletter h4 {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }

  .newsletter-input {
    flex: 1;
    padding: 0.75rem;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
  }

  .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  .newsletter-input:focus {
    outline: none;
    border-color: #ff6b9d;
  }

  .newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: #ff6b9d;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
  }

  .newsletter-btn:hover {
    background: #e55a8a;
    transform: translateY(-2px);
  }

  /* Right Section - Social & Contact */
  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .social-section h3,
  .contact-section h3 {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .social-icons {
    display: flex;
    gap: 1rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    background: #3a3a3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
  }

  .social-icon:hover {
    background: #ff6b9d;
    transform: translateY(-2px);
  }

  .contact-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
  }

  /* Bottom Legal Links */
  .footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 3rem;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  .legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
  }

  .legal-link:hover {
    color: white;
  }

  /* Sub-navigation styles */
  .sub-nav {
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
  }

  .sub-nav a {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }

  .sub-nav a:hover {
    color: #6c63ff;
  }

  .sub-nav a:first-child {
    color: #6c63ff;
    font-weight: bold;
  }

  /* Responsive design for home page */
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 2.5rem;
    }

    .hero p {
      font-size: 1rem;
    }

    .what-is-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .category-grid {
      gap: 1rem;
      padding: 0.5rem 0;
    }

    .category-image {
      width: 80px;
      height: 80px;
    }

    .category-item span {
      font-size: 0.8rem;
    }

    .reviews-section {
      padding: 4rem 1rem;
    }

    .reviews-header {
      margin-bottom: 3rem;
    }

    .reviews-header h2 {
      font-size: 2.5rem;
    }

    .reviews-subtitle {
      font-size: 1rem;
    }

    .review-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .review-card {
      padding: 1.5rem;
    }

    .review-avatar {
      width: 60px;
      height: 60px;
    }

    .review-text {
      font-size: 0.95rem;
    }

    .main-footer {
      margin: 1rem;
      padding: 3rem 1.5rem 2rem;
    }

    .footer-content {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }

    .footer-brand {
      order: 1;
    }

    .footer-newsletter {
      order: 2;
    }

    .footer-contact {
      order: 3;
    }

    .newsletter-form {
      flex-direction: column;
      gap: 1rem;
    }

    .social-icons {
      justify-content: center;
    }

    .footer-legal {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }

    .sub-nav {
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .sub-nav a {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
    }
  }

  /* Cart Page Styles */
  .cart-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
  }

  .cart-main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .cart-summary-panel {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }

  .cart-items-area {
    min-height: 400px;
  }

  .cart-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
  }

  .cart-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgb(32, 32, 32);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .cart-subtitle {
    font-size: 1.1rem;
    color: rgba(40, 40, 40, 0.9);
    font-weight: 500;
  }

  .cart-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
  }

  .cart-items {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .cart-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 1.5rem;
    align-items: center;
  }

  .cart-item:last-child {
    border-bottom: none;
  }

  .item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }

  .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .item-details {
    flex: 1;
  }

  .item-details h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
  }

  .item-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .item-category,
  .item-condition,
  .item-value {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #666;
  }

  .item-value {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
  }

  .item-owner {
    font-size: 0.8rem;
    color: #999;
  }

  .item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .remove-btn,
  .view-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
  }

  .remove-btn {
    background: #ffebee;
    color: #d32f2f;
  }

  .remove-btn:hover {
    background: #ffcdd2;
  }

  .view-btn {
    background: #6c63ff;
    color: white;
  }

  .view-btn:hover {
    background: #5a52d5;
  }

  .cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .cart-summary h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 1.5rem;
  }

  .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #2a2a2a;
    font-weight: 500;
  }

  .summary-item:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
    font-weight: bold;
    font-size: 1.1rem;
  }

  .summary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .clear-cart-btn,
  .checkout-btn {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
  }

  .clear-cart-btn {
    background: #f5f5f5;
    color: #666;
  }

  .clear-cart-btn:hover {
    background: #e0e0e0;
  }

  .checkout-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
  }

  .checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }

  .empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
    color: #666;
  }

  .empty-cart h2 {
    font-size: 1.8rem;
    color: #2a2a2a;
    margin-bottom: 1rem;
    font-weight: bold;
  }

  .empty-cart p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }

  .browse-btn {
    background: linear-gradient(135deg, #6c63ff, #5a52d5);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .browse-btn:hover {
    transform: translateY(-2px);
  }

  .error-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .error-state h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
  }

  .error-state p {
    color: #666;
    margin-bottom: 2rem;
  }

  .retry-btn {
    background: #6c63ff;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
  }

  .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease;
  }

  @keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /* Responsive design for cart page */
  @media (max-width: 768px) {
    .cart-main-layout {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .cart-summary-panel {
      position: static;
      order: 2;
    }

    .cart-items-area {
      order: 1;
    }

    .cart-item {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
    }

    .item-image {
      width: 120px;
      height: 120px;
    }

    .item-actions {
      flex-direction: row;
      justify-content: center;
    }

    .cart-summary {
      position: static;
    }
  }

/* Profile Page - New Styles */
.profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Profile Overview */
.profile-overview {
    margin-bottom: 3rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-photo {
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid #6c63ff;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.photo-change {
    background: #6c63ff;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.photo-change:hover {
    background: #5a52d5;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: white;
}

.profile-info p {
    margin: 0.25rem 0;
    color: #a0a0a0;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: #242424;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #6c63ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Products Section */
.products-section {
    background: #242424;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    color: #a0a0a0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333333;
    border-top-color: #6c63ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.products-empty {
    text-align: center;
    padding: 3rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.product-card {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
}

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

.product-image {
    position: relative;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: white;
}

.product-category,
.product-condition {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.product-value {
    color: #6c63ff;
    font-weight: 600;
    margin: 0.5rem 0;
}

.product-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    background: #242424;
}

.product-status.available { color: #4CAF50; }
.product-status.pending { color: #6c63ff; }
.product-status.swapped { color: #a0a0a0; }

.product-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #242424;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #2a2424;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.settings-section {
    background: #242424;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.settings-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    color: white;
}

/* Forms */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    color: #a0a0a0;
    font-size: 0.9rem;
}

input, textarea, select {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
}

input::placeholder, textarea::placeholder {
    color: #666;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed #333333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: #6c63ff;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 2rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #a0a0a0;
}

.image-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

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

.modal-content {
    background: #242424;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #6c63ff;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #5a52d5;
}

.btn-secondary {
    background: transparent;
    color: #6c63ff;
    border: 2px solid #6c63ff;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #6c63ff;
    color: white;
}

.btn-danger {
    background: #ff5c5c;
    color: #ffffff;
    font-weight: 600;
}

.btn-danger:hover {
    opacity: 0.9;
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: #242424;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left: 4px solid #4CAF50; }
.toast-error { border-left: 4px solid #ff5c5c; }
.toast-info { border-left: 4px solid #6c63ff; }

.toast-close {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    font-size: 1.2rem;
}

.toast-close:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .profile-container {
        padding: 1rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Form Labels and Text */
.form-group label {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

/* Form Fields */
input, textarea, select {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

input::placeholder, textarea::placeholder {
    color: #888;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
    background: #333;
}

/* Preferences Section */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s;
    background: #2a2a2a;
}

.toggle-switch:hover {
    background: #333;
}

.toggle-label {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
}

.toggle-slider {
    position: relative;
    width: 52px;
    height: 26px;
    background-color: #444;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background-color: #6c63ff;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Section Headers */
.settings-section h2 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn-primary {
    background: #6c63ff;
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #5a52d5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

/* Form Section Spacing */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Bio Textarea */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Settings Section */
.settings-section {
    background: #242424;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
}

/* Required Field Indicator */
.form-group label.required:after {
    content: '*';
    color: #ff5c5c;
    margin-left: 4px;
}

/* Field Hints */
.field-hint {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Disabled State */
input:disabled, textarea:disabled, select:disabled {
    background: #222;
    color: #666;
    cursor: not-allowed;
}

.toggle-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error State */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #ff5c5c;
}

.error-message {
    color: #ff5c5c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Navigation Buttons */
.nav-bar button,
button.logout {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff6b9d;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-bar button:hover,
button.logout:hover {
    background: #ff6b9d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* Active Navigation Link */
.nav-links a.active {
    background: #ff6b9d;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-2px);
}

/* Profile Photo Styles */
.profile-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #242424;
    border: 3px solid #ff6b9d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.avatar-placeholder {
    font-size: 4rem;
    color: #666;
}

.photo-change {
    background: #ff6b9d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-change:hover {
    background: #ff4b85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #242424;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-error {
    border-left: 4px solid #ff5c5c;
}

.toast-info {
    border-left: 4px solid #2196F3;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.toast-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info h1 {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.profile-info p {
    color: #a0a0a0;
    margin: 0;
}

.email, .location, .member-since {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-info {
        align-items: center;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}