/* Amazon Style - Design épuré */

:root {
    --amazon-orange: #ff9900;
    --amazon-blue: #232f3e;
    --amazon-light-blue: #37475a;
    --amazon-gray: #f3f3f3;
    --text-primary: #0f1111;
    --text-secondary: #565959;
    --border-light: #ddd;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Amazon Ember", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background: #fff;
}

/* Header Amazon Style */
.header {
    background: var(--amazon-blue);
    color: white;
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    max-width: 1500px;
    margin: 0 auto;
}

.nav-container .nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-container .user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    padding: 8px 12px;
}

.logo:hover {
    color: var(--amazon-orange);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 2px;
    transition: background 0.2s;
}

.nav-link:hover, .nav-link.active {
    background: var(--amazon-light-blue);
}

.btn-login {
    background: var(--amazon-orange) !important;
    color: var(--amazon-blue) !important;
    font-weight: bold;
    margin-left: auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    height: fit-content;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.prime-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--amazon-blue);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
}

.product-info {
    padding: 12px;
}

.product-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 12px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    color: #ddd;
    font-size: 14px;
}

.star.filled {
    color: var(--amazon-orange);
}

.rating-text {
    color: var(--text-primary);
    font-weight: 500;
}

.reviews-count {
    color: var(--text-secondary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.currency {
    font-size: 12px;
    color: var(--text-primary);
}

.amount {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.prime-shipping {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Section Spacing */
.section {
    padding: 20px 0;
}

.section-header {
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 21px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Category Navigation */
.category-nav {
    background: var(--amazon-gray);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.category-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.category-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.category-link:hover, .category-link.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hero simplifié */
.hero {
    background: var(--amazon-gray);
    padding: 40px 0;
}

.hero-content {
    text-align: center;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.hero-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    background: var(--amazon-orange);
    color: var(--amazon-blue);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #e88900;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--amazon-gray);
}

/* Footer */
.footer {
    background: var(--amazon-blue);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.footer-section p, .footer-section a {
    font-size: 14px;
    margin: 8px 0;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--amazon-light-blue);
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.app-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 10px;
}

.app-button {
    display: inline-block;
    transition: opacity 0.3s;
}

.app-button:hover {
    opacity: 0.8;
}

.app-button img {
    display: block;
    height: 40px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* Masquer les éléments non utilisés */
.hero-image, .feature-card, .card-grid {
    display: none;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--amazon-blue);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .user-menu {
        width: 100%;
        margin: 0;
        padding: 0 1rem;
    }
    
    .user-menu-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

/* Styles améliorés pour les cartes produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-card .prime-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #232f3e;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
}

.product-card .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-title {
    font-size: 16px;
    font-weight: 500;
    color: #0f1111;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-price {
    margin-top: auto;
    padding-top: 12px;
}

.product-card .points-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-card .points-badge i {
    font-size: 16px;
    color: #ffd700;
}

.product-card .points-badge .amount {
    font-size: 18px;
    color: white !important;
}

.product-card .points-badge .currency {
    font-size: 14px;
    opacity: 0.9;
    color: white !important;
}

.product-card .free-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 14px;
    font-weight: 600;
}

.product-card .free-label i {
    font-size: 14px;
}

.product-card .prime-shipping {
    margin-top: 8px;
    font-size: 13px;
    color: #007185;
    font-weight: 500;
}

/* Section produits sur la page d'accueil */
.product-section {
    background: #f7f7f7;
    padding: 40px 0;
    margin: 20px 0;
}

.product-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.product-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f1111;
}

.empty-products {
    text-align: center;
    padding: 60px 20px;
    color: #565959;
    font-size: 16px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .product-card .product-image {
        height: 200px;
    }
    
    .product-card .product-info {
        padding: 16px;
    }
    
    .product-card .product-title {
        font-size: 14px;
    }
    
    .product-card .points-badge {
        padding: 6px 10px;
    }
    
    .product-card .points-badge .amount {
        font-size: 16px;
    }
}