/* Reset minimal */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

main {
    flex: 1;
}

/* Header avec animation */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

header h1 {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Search bar améliorée */
.search-container {
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    gap: 10px;
    padding: 0 20px;
}

.search-container input {
    flex: 1;
    padding: 18px 25px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.search-container button {
    padding: 18px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.search-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.search-container button:active {
    transform: translateY(-1px);
}

/* Bouton Discord à côté de la recherche */
.discord-btn {
    background: #5865F2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s ease;
    font-size: 24px;
    flex-shrink: 0;
}

.discord-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
    background: #4752C4;
}

/* Products grid avec animations */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    padding: 40px 20px;
}

.product-card {
    width: 260px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.product-card .image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2d3748;
}

.product-info p {
    font-weight: bold;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 20px 60px 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-dots {
    padding: 0 10px;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Product page améliorée */
.back-btn {
    display: inline-block;
    margin: 25px 0 0 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    width: auto;
    max-width: fit-content;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.product-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    align-items: flex-start;
}

.product-images {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    cursor: zoom-in;
    transition: none;
    width: 90%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.main-image:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.main-image.zoomed {
    cursor: zoom-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 9999;
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.thumbnails img.thumbnail-active {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.thumbnails img:hover {
    transform: scale(1.15);
    border-color: #764ba2;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.product-details {
    max-width: 500px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-details h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #4a5568;
}

.price {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.buy-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.buy-btn:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
    header {
        padding: 50px 20px 40px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .search-container {
        flex-wrap: wrap;
    }
    
    .search-container input {
        width: 100%;
    }
    
    .search-container button,
    .discord-btn {
        flex: 1;
    }
    
    .discord-btn {
        width: auto;
        min-width: 50px;
    }
    
    .product-page {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .product-details {
        padding: 30px 20px;
    }
    
    .main-image {
        max-width: 90%;
        max-height: 60vh;
    }
    
    .back-btn {
        width: auto;
        max-width: fit-content;
        margin-left: 15px;
    }
    
    .product-card {
        width: 90%;
        max-width: 350px;
    }
    
    .pagination {
        gap: 5px;
        padding: 30px 10px 50px 10px;
    }
    
    .pagination-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}