/* ================================================
   Amalyon — Catégories Client  v2.0.0
   ================================================ */

.ama-cat-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
    margin: 1.5rem 0;
}

.ama-cat-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ama-cat-cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
    .ama-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .ama-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 480px) {
    .ama-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}

/* Carte */
.ama-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem 1rem 1.1rem;
    gap: 0.6rem;
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s;
}
.ama-cat-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-3px);
    border-color: #c7d2fe;
    text-decoration: none;
    color: inherit;
}

/* Icône emoji */
.ama-cat-icon {
    font-size: 2.2rem;
    line-height: 1;
    display: block;
}

/* Image thumbnail */
.ama-cat-card .ama-cat-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

/* Placeholder si aucune image ni icône */
.ama-cat-placeholder {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 10px;
}

/* Libellé */
.ama-cat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

/* Compteur produits (optionnel) */
.ama-cat-count {
    font-size: 0.72rem;
    color: #6b7280;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .ama-cat-card {
        background: #1f2937;
        border-color: #374151;
    }
    .ama-cat-label { color: #f9fafb; }
    .ama-cat-count { color: #9ca3af; }
    .ama-cat-placeholder { background: #374151; }
}
