/* Marketplace shop page styles (extracted from simpleindex_modified.html) */

.marketplace-container {
    margin-top: 2rem;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.category-button {
    padding: 0.75rem 1.5rem;
    background: rgba(139, 77, 199, 0.1);
    border: 1px solid rgba(139, 77, 199, 0.3);
    color: var(--secondary-purple);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-button:hover,
.category-button.active {
    background: rgba(139, 77, 199, 0.3);
    transform: translateY(-2px);
}

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

.product-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(139, 77, 199, 0.1);
}

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-details {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    font-size: 0.8rem;
    color: rgba(139, 77, 199, 0.8);
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--secondary-purple);
    margin-bottom: 1rem;
    font-weight: bold;
}

.action-button {
    padding: 0.75rem;
    background: rgba(139, 77, 199, 0.2);
    border: 1px solid rgba(139, 77, 199, 0.3);
    color: var(--secondary-purple);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
    font: inherit;
}

.action-button:hover {
    background: rgba(139, 77, 199, 0.3);
}

.product-actions {
    display: flex;
    flex-direction: column;
}

.featured-section {
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: rgba(139, 77, 199, 0.5);
}

.no-products {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Floating cart icon */
.cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: rgba(139, 77, 199, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    border: 2px solid rgba(139, 77, 199, 0.5);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background-color: rgba(139, 77, 199, 0.3);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff6b6b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Wishlist styles removed (audit H-05 — feature deprecated). */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .product-image {
        height: 150px;
    }

    .product-details {
        padding: 1rem;
    }

    .category-filter {
        gap: 0.5rem;
    }

    .cart-icon {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 180px;
    }
}
