@charset "UTF-8";

/* ============================================================
   ФІОЛЕТОВО-РОЖЕВА ГАММА (БЕЗ КРАПОК)
   ============================================================ */
:root {
    --bg-card: #fbf8fc;
    --border-card: #e8dce8;
    --text-main: #3d2a4a;
    --text-sub: #a884b0;
    --shadow: rgba(150, 100, 170, 0.08);
    --hover-bg: rgba(180, 130, 200, 0.06);
    --hover-border: #d4bcdb;
}

/* ===== СІТКА ===== */
.cosme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

/* ===== КАРТКА ===== */
.cosme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 14px 18px;
    background: var(--bg-card);
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-card);
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    /* ===== НЕ ОБРІЗАТИ ТЕКСТ ===== */
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-word;
}

.cosme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(150, 100, 170, 0.12);
    border-color: var(--hover-border);
    background: var(--hover-bg);
}

/* ===== НАЗВА ===== */
.cosme-name {
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-main);
    line-height: 1.3;
}

/* ===== ПІДЗАГОЛОВОК ===== */
.cosme-sub {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.2;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшет — 2 колонки */
@media (max-width: 992px) {
    .cosme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 8px;
    }
    
    .cosme-card {
        padding: 18px 12px 16px;
        min-height: 70px;
        border-radius: 16px;
    }
    
    .cosme-name {
        font-size: 14px;
    }
}

/* Мобілка — 2 колонки (текст не обрізається!) */
@media (max-width: 576px) {
    .cosme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 6px;
    }
    
    .cosme-card {
        padding: 14px 8px 12px;
        min-height: 60px;
        border-radius: 14px;
        box-shadow: 0 2px 10px var(--shadow);
    }
    
    .cosme-name {
        font-size: 12.5px;
        font-weight: 600;
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    .cosme-sub {
        font-size: 10px;
    }
    
    .cosme-card:hover {
        transform: none;
    }
}

/* Дуже малі екрани */
@media (max-width: 400px) {
    .cosme-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 4px;
    }
    
    .cosme-card {
        padding: 10px 6px 8px;
        min-height: 50px;
        border-radius: 12px;
    }
    
    .cosme-name {
        font-size: 11px;
    }
    
    .cosme-sub {
        display: none;
    }
}
