/* Marketplace Styles */
.marketplace-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.marketplace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
}

.search-form select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    font-weight: 700;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-seller {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.pending-approval-section {
    padding: 4rem 0;
}

.pending-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.pending-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.pending-card h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.pending-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.pending-card ul {
    text-align: left;
    margin: 1.5rem 0;
    color: var(--text-light);
}

.pending-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Stripe Payment Elements */
.stripe-card-element {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background: white;
    margin-bottom: 0.5rem;
}

.card-errors {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

/* Shopping Cart Styles */
.cart-section {
    padding: 4rem 0;
}

.cart-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-summary {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

/* Wishlist Styles */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.wishlist-item {
    position: relative;
}

.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #dc3545;
    transition: var(--transition);
}

.wishlist-remove:hover {
    background: #dc3545;
    color: white;
}

/* Reviews Styles */
.reviews-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.review-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

.review-rating {
    color: #FFA500;
    font-size: 1.2rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
}

.verified-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .marketplace-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-actions {
        justify-content: center;
    }
}


