/* Styles pour la page Boutique - American Shop by Toutou */

/* ===== HERO BOUTIQUE ===== */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.shop-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.shop-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.shop-title i {
    color: #FFD700;
    margin-right: 15px;
    animation: sparkle 2s ease-in-out infinite;
}

.shop-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Breadcrumb */
.shop-breadcrumb {
    margin-top: 30px;
}

.shop-breadcrumb ol {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.shop-breadcrumb li {
    display: flex;
    align-items: center;
}

.shop-breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 15px;
    opacity: 0.7;
}

.shop-breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.shop-breadcrumb a:hover {
    opacity: 1;
}

/* ===== FILTRES ===== */
.shop-filters {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr auto;
    gap: 30px;
    align-items: start;
}

.filters-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-title i {
    color: var(--primary-color);
}

/* Recherche */
.shop-search {
    position: relative;
}

.search-field-wrapper {
    position: relative;
    display: flex;
}

.search-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(243, 178, 200, 0.2);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Filtres par catégorie */
.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 15px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--secondary-color);
}

.filter-btn .count {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Tri */
.sort-select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 178, 200, 0.2);
}

/* Vue toggle */
.view-toggle {
    display: flex;
    gap: 5px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 5px;
}

.view-btn {
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.view-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* ===== PRODUITS ===== */
.shop-products {
    padding: 60px 0;
}

.results-count {
    margin-bottom: 30px;
}

.showing-results {
    color: #666;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grille de produits */
.products-grid[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.products-grid[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Product card en mode grille */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Product card en mode liste */
.products-grid[data-view="list"] .product-card {
    flex-direction: row;
    max-width: none;
    height: 200px;
}

.products-grid[data-view="list"] .product-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid[data-view="list"] .product-info {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Image produit */
.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Badges produit */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.new {
    background: #2ecc71;
    color: white;
}

.badge.sale {
    background: #e74c3c;
    color: white;
}

.badge.bestseller {
    background: #f39c12;
    color: white;
}

.badge.eco {
    background: #27ae60;
    color: white;
}

/* Actions produit */
.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-actions button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.wishlist-toggle.active {
    background: #e74c3c;
    color: white;
}

/* Informations produit */
.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.stars i.far {
    color: #ddd;
}

.rating-count {
    font-size: 0.85rem;
    color: #666;
}

.product-title {
    margin-bottom: 12px;
    flex-grow: 1;
}

.product-title a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prix produit */
.product-price {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

/* Variantes produit */
.product-variants {
    margin-bottom: 20px;
}

.color-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.shade-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Bouton ajouter au panier */
.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-top: auto;
}

.add-to-cart:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 178, 200, 0.4);
}

.add-to-cart:active {
    transform: translateY(0);
}

/* États de chargement */
.loading-spinner {
    text-align: center;
    padding: 60px;
    grid-column: 1 / -1;
}

.spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner i {
    font-size: 2rem;
    color: var(--primary-color);
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-products-message {
    max-width: 400px;
    margin: 0 auto;
}

.no-products-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products-message h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.no-products-message p {
    color: #666;
    margin-bottom: 25px;
}

.reset-filters {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background: var(--secondary-color);
}

/* ===== PAGINATION ===== */
.shop-pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover,
.pagination-number:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-dots {
    color: #666;
    font-weight: bold;
}

/* ===== AVANTAGES ===== */
.shop-benefits {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 20px;
}

.benefit-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.benefit-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.benefit-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
    .filters-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .view-toggle {
        grid-column: 1 / -1;
        justify-self: center;
    }
    
    .category-filter-buttons {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 60px 0 40px;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .shop-subtitle {
        font-size: 1rem;
    }
    
    .shop-breadcrumb ol {
        flex-direction: column;
        gap: 10px;
    }
    
    .shop-breadcrumb li:not(:last-child)::after {
        content: none;
    }
    
    .shop-filters {
        padding: 20px 0;
        position: static;
    }
    
    .filters-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .products-grid[data-view="grid"] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .products-grid[data-view="list"] .product-card {
        flex-direction: column;
        height: auto;
    }
    
    .products-grid[data-view="list"] .product-image {
        width: 100%;
        height: 250px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-actions {
        opacity: 1;
        transform: translateX(0);
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 15px 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .pagination-wrapper {
        gap: 8px;
    }
    
    .pagination-btn,
    .pagination-number {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        padding: 40px 0 30px;
    }
    
    .shop-products {
        padding: 40px 0;
    }
    
    .products-grid[data-view="grid"] {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .search-field {
        padding: 12px 45px 12px 15px;
        font-size: 0.9rem;
    }
    
    .search-submit {
        width: 35px;
        height: 35px;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .shop-filters {
        background: #2d3436;
        border-color: #636e72;
    }
    
    .product-card {
        background: #2d3436;
        color: #ddd;
    }
    
    .search-field {
        background: #636e72;
        border-color: #636e72;
        color: #ddd;
    }
    
    .filter-btn {
        background: #636e72;
        color: #ddd;
    }
    
    .benefit-item {
        background: #2d3436;
        color: #ddd;
    }
}