/* --- VARIABLES DE DESIGN (COULEURS PREMIUM) --- */
:root {
    --bg-app: #f4f7f6;
    --primary: #1a2a6c;
    --primary-light: #2a4858;
    --accent: #27ae60;
    --accent-hover: #219a52;
    --danger: #e74c3c;
    --danger-hover: #c0392b;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 16px;
    --border-radius-sm: 12px;
}

/* --- BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-dark);
    margin: 0;
    padding-bottom: 80px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px;
}

/* --- EN-TÊTE (HEADER) --- */
.header-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 0 0 25px 25px;
    box-shadow: var(--shadow);
}

/* --- CARTES DU TABLEAU DE BORD --- */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

/* --- ZONE DE PROFIL (Logo + Infos boutique) --- */
.profile-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow);
    background: var(--white);
}

.profile-zone input[type="file"] {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 100%;
    background: #fafafa;
}

.profile-zone input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.profile-zone input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* --- FORMULAIRES --- */
form input:not([type="file"]),
form input[type="text"],
form input[type="number"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

form input:focus {
    outline: none;
    border-color: var(--accent);
}

form input[type="file"] {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8f9fc;
    cursor: pointer;
}

form input[type="file"]:hover {
    background: #f0f2f5;
}

/* --- BOUTONS --- */
.btn-blue, .btn-green, .btn-login, .btn-register {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-blue {
    background: var(--primary);
    color: white;
}

.btn-blue:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-green {
    background: var(--accent);
    color: white;
}

.btn-green:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-login {
    background: var(--primary);
    color: white;
}

.btn-register {
    background: var(--accent);
    color: white;
}

.btn-blue:active, .btn-green:active,
.btn-login:active, .btn-register:active {
    transform: translateY(0);
}

/* --- BOUTON DECONNEXION AMELIORE --- */
.btn-logout {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: var(--danger-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.logout-link {
    text-align: right;
    margin-bottom: 20px;
}

/* --- LIEN PUBLIC AVEC ESPACEMENT --- */
.shop-url-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.url-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.url-input-group input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #f9f9f9;
}

.copy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* --- LISTE DES ARTICLES (TABLEAU DE BORD) --- */
.article-row {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-row:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.thumb {
    width: 65px !important;
    height: 65px !important;
    border-radius: 10px !important;
    object-fit: cover;
    margin-right: 15px;
    background: #f0f0f0;
}

.article-row .info {
    flex: 1;
}

.article-row .info p {
    margin: 0 0 4px 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.article-row .info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
}

/* --- BOUTONS D'ACTIONS (Cercles) --- */
.actions {
    display: flex;
    gap: 10px;
}

.btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-circle.add-pic {
    background: #e3f2fd;
    color: #1e88e5;
}

.btn-circle.add-pic:hover {
    background: #1e88e5;
    color: white;
    transform: scale(1.05);
}

.btn-circle.del {
    background: #ffebee;
    color: #e53935;
}

.btn-circle.del:hover {
    background: #e53935;
    color: white;
    transform: scale(1.05);
}

.btn-circle:active {
    transform: scale(0.95);
}

/* --- MESSAGE DE SUCCÈS --- */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-left: 4px solid var(--accent);
}

/* ========== GRILLE D'ARTICLES (ACCUEIL / RECHERCHE / BOUTIQUE) ========== */
.grid-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
}

/* Conteneur de l'image : permet de positionner le badge */
.image-container {
    position: relative;
    width: 100%;
    background: #e9ecef;
}

/* Image principale carrée et pleine largeur */
.card-app img {
    width: 100%;
    aspect-ratio: 1 / 1;        /* Format carré (type Instagram) */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.card-app:hover img {
    transform: scale(1.02);
}

/* Badge "•••" pour plusieurs photos (ancien) – conservé pour compatibilité */
.multi-photo-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    backdrop-filter: blur(4px);
    z-index: 2;
    line-height: 1;
}

/* NOUVEAU badge avec le nombre exact de photos (ex: 📷 3) */
.photo-count-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 2;
}

/* Carte produit */
.card-app {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card-app:active {
    transform: scale(0.97);
}

/* Corps de la carte : texte compact */
.card-body {
    padding: 10px 8px;
}

.article-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-tag {
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
    margin: 2px 0;
}

/* Infos vendeur (mini) */
.seller-info-mini {
    display: flex;
    align-items: center;
    margin: 6px 0 4px;
    gap: 6px;
}

.seller-logo-circle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* Masquage du cercle logo vendeur sur l'accueil (selon demande) */
.seller-logo-circle {
    display: none;
}
.seller-name-mini::before {
    content: "🏪 ";
    font-size: 0.7rem;
}

.seller-name-mini {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bouton WhatsApp classique (grand) – conservé */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 6px 6px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

/* NOUVEAU bouton WhatsApp réduit pour les articles */
.btn-whatsapp-sm {
    background: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.7rem;
    transition: 0.2s;
    width: fit-content;
}
.btn-whatsapp-sm:hover {
    background: #128C7E;
}

/* --- GRILLE BOUTIQUES --- */
.grid-boutiques {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.boutique-card-full {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.boutique-card-full:hover {
    transform: scale(1.02);
}

.boutique-logo-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boutique-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 10px;
    color: white;
    text-align: center;
}

.boutique-name-on-card {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* --- EN-TÊTE BOUTIQUE (STYLE WHATSAPP : LOGO CERCLÉ + FOND FLOUTÉ) --- */
/* Anciennes classes, conservées pour compatibilité */
.shop-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}
.shop-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(0.6);
    z-index: 0;
}
.shop-header-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
}
.shop-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    background: white;
}

/* --- NOUVEL EN-TÊTE BOUTIQUE (sans cercle, fond image) --- */
.shop-header-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 3rem 1rem;
    text-align: center;
    color: white;
}
.shop-header-overlay {
    background: rgba(0, 0, 0, 0.55);
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(2px);
}
.shop-header-bg h1 {
    margin: 0 0 0.5rem;
    font-weight: 800;
    font-size: 1.8rem;
}
.btn-whatsapp-shop-small {
    background: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.2s;
}
.btn-whatsapp-shop-small:hover {
    background: #128C7E;
}

/* --- NAVIGATION BASSE --- */
.navigation-fixe {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.navigation-fixe a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #95a5a6;
    transition: color 0.2s;
}

.navigation-fixe a:hover {
    color: var(--accent);
}

.navigation-fixe .icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.navigation-fixe .label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- MODAL ZOOM AMELIORE POUR SMARTPHONE --- */
.modal-zoom {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    touch-action: pan-x pan-y;
}

.modal-content {
    max-width: 95%;
    max-height: 85%;
    border-radius: 12px;
    object-fit: contain;
}

/* --- FORMULAIRES D'AUTHENTIFICATION --- */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -2px;
}

#login-form, #register-form {
    display: none;
}

#login-form.active, #register-form.active {
    display: block;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- RESPONSIVE (SMARTPHONE) --- */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .thumb {
        width: 55px !important;
        height: 55px !important;
    }
    
    .btn-circle {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .grid-articles {
        gap: 10px;
        padding: 10px;
    }
    
    /* Badge plus petit */
    .multi-photo-badge, .photo-count-badge {
        font-size: 9px;
        padding: 2px 6px;
        bottom: 5px;
        right: 5px;
    }
    
    .price-tag {
        font-size: 0.9rem;
    }
    
    .article-name {
        font-size: 0.75rem;
    }
    
    .btn-whatsapp, .btn-whatsapp-sm {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    /* En-tête boutique responsive */
    .shop-header-content, .shop-header-bg {
        padding: 25px 15px;
    }
    .shop-logo {
        width: 75px;
        height: 75px;
    }
}

/* --- BOUTONS WHATSAPP (SHOP & FLOAT) --- */
.btn-whatsapp-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-whatsapp-shop:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-shop:active {
    transform: translateY(0);
}

/* --- SECTION BOUTIQUE (INFOS SUPPLEMENTAIRES) --- */
.shop-info-section {
    background: white;
    margin-top: -20px;
    border-radius: 25px 25px 0 0;
    padding: 20px 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-card h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1rem;
}

.info-card p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- RÉSEAUX SOCIAUX AVEC VRAIS LOGOS --- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.1rem;
}

.social-link.facebook {
    background: #1877f2;
    color: white;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
    color: white;
}

.social-link.twitter {
    background: #1da1f2;
    color: white;
}

.social-link.tiktok {
    background: #000000;
    color: white;
}

/* Bouton photo (existant) */
.btn-photo {
    background: #e3f2fd;
    color: #1e88e5;
}
.btn-photo:hover {
    background: #1e88e5;
    color: white;
}
/* --- Affichage prix + description sur la même ligne --- */
.price-desc-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0;
}
.price-tag {
    margin: 0;
    white-space: nowrap;
}
.short-desc {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* --- Nom boutique + logo (caché) et bouton WhatsApp sur la même ligne --- */
.seller-and-whatsapp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.seller-info-mini {
    display: flex;
    align-items: center;
    gap: 4px;
}
.seller-logo-circle {
    display: none; /* logo caché comme demandé */
}
.seller-name-mini {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}
.seller-name-mini::before {
    content: "🏪 ";
    font-size: 0.7rem;
}

/* --- Bouton WhatsApp sans texte, seulement l'icône --- */
.btn-whatsapp-icon {
    background: #25D366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.2s;
}
.btn-whatsapp-icon:hover {
    background: #128C7E;
    transform: scale(1.05);
}
/* Barre de recherche responsive */
#search-bar form { 
    max-width: 500px; 
    margin: 0 auto; 
    display: flex; 
    gap: 10px;
    flex-wrap: wrap;
}

/* Input plein écran sur mobile */
@media (max-width: 768px) {
    #search-bar {
        padding: 12px 15px;
        top: -55px; /* Hauteur mobile */
    }
    
    #search-bar input[type="search"] { 
        flex: 1; 
        min-width: 200px; 
        font-size: 16px; /* iOS zoom fix */
    }
    
    #search-bar input[type="submit"] { 
        flex-shrink: 0; 
        padding: 12px 18px;
        white-space: nowrap;
    }
}

/* Petit écran ultra-compact */
@media (max-width: 480px) {
    #search-bar {
        padding: 10px 12px;
    }
    
    #search-bar input[type="search"] { 
        padding: 12px 8px; 
    }
    
    #search-bar input[type="submit"] { 
        padding: 12px 12px; 
        font-size: 14px;
    }
}

/* Animation plus rapide mobile */
@media (max-width: 768px) {
    #search-bar {
        transition: top 0.2s ease;
    }
}
/* ========== FORCER LES IMAGES À DES DIMENSIONS PARFAITES ========== */
/* Pour toutes les images affichées dans les fiches produits, boutiques, etc. */
img {
    max-width: 100%;
    height: auto;
}

/* Images des produits dans la grille : déjà carrées, on renforce */
.card-app img {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    background-color: #f0f0f0; /* couleur de remplissage si l'image est plus petite */
}

/* Logo des boutiques (header et carte) */
.shop-logo, .logo-img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Image de fond de l'en-tête boutique (bannière) */
.shop-header-bg {
    background-size: cover;
    background-position: center;
    min-height: 200px;
}

/* Image des thumbnails dans le tableau de bord vendeur */
.thumb {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover;
    border-radius: 10px;
}

/* Image des mini-logos vendeur (si jamais réactivés) */
.seller-logo-circle {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

/* Image dans la modale de zoom */
.modal-content {
    max-width: 95%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Toute autre image意外 qui pourrait être déformée */
img[src*="uploads"] {
    object-fit: cover;
}

/* Pour éviter les images trop petites ou mal cadrées sur mobile */
@media (max-width: 480px) {
    .shop-logo, .logo-img {
        width: 75px !important;
        height: 75px !important;
    }
    .thumb {
        width: 55px !important;
        height: 55px !important;
    }
}