/**
 * BLACK-FROGS COMPARATEUR
 * Feuille de style principale
 * Style inspiré de black-frogs.com
 */

/* ========================================
   BASE
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   HEADER
======================================== */

/* Top Bar */
.top-bar {
    background: #2c2c2c;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

.top-bar a:hover {
    color: #ff6600;
}

/* Header Principal */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #ff6600;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: #2c2c2c;
}

/* Barre de recherche */
.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    border: 2px solid #ff6600;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #e65c00;
}

.header-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.header-info a {
    color: #333;
    text-decoration: none;
}

.header-info a:hover {
    color: #ff6600;
}

/* ========================================
   NAVIGATION
======================================== */

nav {
    background: #f8f8f8;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    overflow-x: auto;
}

.nav-link {
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ff6600;
}

.nav-link.active {
    color: #ff6600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff6600;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6600;
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: #ff6600;
    font-weight: 500;
}

/* ========================================
   LAYOUT PRINCIPAL
======================================== */

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}


/* ========================================
   LAYOUT PRINCIPAL - 2 COLONNES
======================================== */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ========================================
   SIDEBAR FILTRES
======================================== */

.sidebar {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.sidebar h3 {
    color: #2c2c2c;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6600;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: #ff6600;
}

/* ========================================
   BOUTONS
======================================== */

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.btn-primary:hover {
    background: #e65c00;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: #ff6600;
    color: #ff6600;
}

/* ========================================
   GRILLE PRODUITS
======================================== */

.products-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-count {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* ========================================
   CARTE PRODUIT
======================================== */

.product-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

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

.product-image {
    position: relative;
    padding-top: 100%;
    background: #f8f8f8;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
}

.product-brand {
    color: #ff6600;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-title {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-title:hover {
    color: #ff6600;
}

.product-ref {
    color: #999;
    font-size: 11px;
    margin-bottom: 10px;
}

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

.price-amount {
    font-size: 22px;
    font-weight: 700;
    color: #ff6600;
}

.price-marketplace {
    font-size: 12px;
    color: #666;
}

.marketplace-links {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.marketplace-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    background: #f8f8f8;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: background 0.2s;
}

.marketplace-link:hover {
    background: #fff3e6;
}

.marketplace-name {
    font-weight: 500;
}

.marketplace-price {
    font-weight: 700;
    color: #ff6600;
}

/* ========================================
   PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.pagination .active {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========================================
   PRODUITS SUGGÉRÉS
======================================== */

.featured-section {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.featured-header {
    background: linear-gradient(135deg, #ff6600 0%, #e65c00 100%);
    color: #fff;
    padding: 20px 30px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-header h2 {
    font-size: 22px;
    font-weight: 500;
}

.featured-header i {
    font-size: 24px;
}

.featured-content {
    background: #fff;
    padding: 30px;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.featured-card {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.featured-card:hover {
    border-color: #ff6600;
    background: #fff;
    transform: translateY(-2px);
}

.featured-card-image {
    position: relative;
    padding-top: 100%;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.featured-card-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.featured-card-brand {
    color: #ff6600;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.featured-card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff6600;
}

/* ========================================
   PAGE PRODUIT
======================================== */

.product-detail {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.product-main {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-image-large {
    background: #f8f8f8;
    border-radius: 4px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-details h1 {
    font-size: 28px;
    color: #2c2c2c;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-category {
    display: inline-block;
    background: #f8f8f8;
    padding: 6px 12px;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
}

.product-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-tags {
    margin-bottom: 20px;
}

.product-tags h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    background: #f8f8f8;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
    margin-right: 6px;
    margin-bottom: 6px;
}

.product-prices {
    background: #fff3e6;
    border: 2px solid #ff6600;
    border-radius: 4px;
    padding: 20px;
}

.best-price {
    margin-bottom: 15px;
}

.best-price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.best-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ff6600;
}

.best-price-marketplace {
    font-size: 14px;
    color: #666;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.price-item:hover {
    box-shadow: 0 2px 8px rgba(255,102,0,0.2);
}

.price-marketplace-name {
    font-weight: 500;
}

.price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #ff6600;
}

.price-stock {
    font-size: 12px;
    color: #666;
}

.price-stock.in-stock {
    color: #22c55e;
}

.price-stock.out-of-stock {
    color: #ef4444;
}

/* ========================================
   FOOTER
======================================== */

footer {
    background: #2c2c2c;
    color: #fff;
    margin-top: 50px;
    padding: 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff6600;
    margin-bottom: 10px;
}

.footer-text {
    color: #999;
    font-size: 14px;
}

.footer-link {
    color: #ff6600;
    text-decoration: none;
    margin: 0 10px;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ========================================
   ÉTAT VIDE
======================================== */

.empty-state {
    background: #fff;
    padding: 60px 20px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 968px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .header-info {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .product-layout {
        grid-template-columns: 1fr;
    }
}
