/**
 * EliteProducts Manager Frontend Styles
 */

/* Products Page Container */
.eliteproducts-manager-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

/* Page Header */
.products-page-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.products-page-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.products-page-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Search Bar */
.products-search {
    margin-bottom: 30px;
}

.product-search-form {
    display: flex;
    gap: 10px;
}

.product-search-form input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.product-search-form button {
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.product-search-form button:hover {
    background: #135e96;
}

/* Filters */
.products-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2271b1;
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

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

.product-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
}

.product-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.product-placeholder .placeholder-text {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-content {
    padding: 20px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.product-title a {
    color: #333;
    text-decoration: none;
}

.product-title a:hover {
    color: #2271b1;
}

/* Rating */
.product-rating {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stars-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.star-full {
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.star-partial {
    position: relative;
    display: inline-block;
    color: #ddd;
}

.star-partial .star-bg {
    color: #ddd;
}

.star-partial .star-fill {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffc107;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.star-empty {
    color: #ddd;
}

.rating-info {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.rating-max {
    font-size: 14px;
    color: #666;
}

.rating-count {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Price */
.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 10px;
}

/* Excerpt */
.product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.product-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

/* Bouton "Voir le produit" - Bleu */
.product-button-view {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white !important;
    border: 2px solid #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

.product-button-view:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4a73 100%);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);
    border-color: #135e96;
}

/* Bouton "Détails" - Jaune */
.product-button-details {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333 !important;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

.product-button-details:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
    border-color: #ff9800;
}

/* Stock Status */
.product-stock {
    margin-top: 10px;
}

.in-stock {
    color: #00a32a;
    font-weight: 600;
}

.out-of-stock {
    color: #d63638;
    font-weight: 600;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.products-pagination .page-numbers {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.products-pagination .page-numbers li {
    margin: 0;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span {
    display: block;
    padding: 10px 16px;
    background: #f0f0f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.products-pagination .page-numbers .current {
    background: #2271b1;
    color: white;
}

.products-pagination .page-numbers a:hover {
    background: #2271b1;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-search-form {
        flex-direction: column;
    }
    
    .products-filters {
        justify-content: center;
    }
}
