/**
 * Sahel Stores Plugin - Frontend Styles
 *
 * @package Sahel_Stores
 */

/* Store Cards */
.store-card {
    position: relative;
    transition: all 0.3s ease;
}

.store-logo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 15px;
}

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

.store-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.store-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.store-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.store-followers {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.store-category {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-category {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product Cards */
.product-card {
    position: relative;
}

.product-image-wrapper {
    position: relative;
}

.product-tags-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-store {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.product-card-footer {
    padding: 0 15px 15px;
}

/* Follow Store Button */
.follow-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.follow-store-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.follow-store-btn.following {
    background-color: var(--primary-color);
    color: white;
}

.follow-store-btn i {
    font-size: 1.125rem;
}

/* Message Store Button */
.message-store-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Store Page */
.store-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.store-header-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.store-header-logo {
    flex-shrink: 0;
}

.store-header-logo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.store-header-info h1 {
    color: white;
    margin-bottom: 15px;
}

.store-header-description {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 20px;
}

.store-header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Product Grid */
.store-products-section {
    padding: 40px 0;
}

.products-filter {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-search {
    flex: 1;
    max-width: 400px;
}

.filter-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
}

.filter-sort select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
}

/* Store Stats */
.store-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-box-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-box-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .store-header-content {
        flex-direction: column;
        text-align: center;
    }

    .store-header-logo img {
        width: 120px;
        height: 120px;
    }

    .store-header-actions {
        justify-content: center;
    }

    .products-filter {
        flex-direction: column;
    }

    .filter-search {
        max-width: 100%;
    }
}
