/* Additional layout styles for SOKONI marketplace */

/* Product and Service Detail Pages */
.product-detail-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
}

@media (min-width: 992px) {
    .product-detail-container {
        flex-direction: row;
    }
}

.product-gallery {
    flex: 1;
    max-width: 100%;
}

@media (min-width: 992px) {
    .product-gallery {
        max-width: 50%;
    }
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Main product image */
.main-product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Thumbnail gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Product details */
.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-description {
    line-height: 1.6;
    color: var(--gray-600);
}

/* Seller card */
.seller-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.seller-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-details {
    flex: 1;
}

.seller-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.seller-meta {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Action buttons */
.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .product-actions {
        grid-template-columns: 1fr 1fr;
    }
}

/* Category pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.category-pill {
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.2s;
}

.category-pill:hover, .category-pill.active {
    background-color: var(--primary-color);
    color: white;
}

/* Filter sidebar */
.filter-sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}

.filter-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Search results */
.search-results-container {
    padding: 2rem 1rem;
}

.search-results-header {
    margin-bottom: 2rem;
}

.search-query {
    font-weight: 700;
    color: var(--primary-color);
}

.results-count {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state-message {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Responsive improvements for mobile */
@media (max-width: 576px) {
    .grid-container {
        padding: 0.5rem;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .section-title {
        margin-bottom: 0.5rem;
    }
}

/* Image optimization for cards */
.card .img-container img {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Improved card hover effects */
.card:hover .img-container img {
    transform: scale(1.03);
}

/* Better spacing for featured sections */
.featured-section + .featured-section {
    margin-top: -1rem;
}