/* ==========================================================================
   Moldtek Categorii — galerie de categorii sub slider. Stil Dedeman, roșu brand.
   Grid responsive: --mtc-cols pe desktop -> 4 (tabletă) -> 3 (mobil) -> 2 (mic).
   ========================================================================== */
.mtc-section {
    max-width: 1200px;
    margin: 26px auto 8px;
    padding: 0 15px;
    font-family: Rubik, 'Helvetica Neue', Arial, sans-serif;
}
.mtc-title {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #222;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
}
.mtc-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: #800000;
}
.mtc-grid {
    display: grid;
    grid-template-columns: repeat(var(--mtc-cols, 6), 1fr);
    gap: 14px;
}
.mtc-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 18px 10px 16px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.mtc-box:hover {
    border-color: #e3c9c9;
    box-shadow: 0 6px 18px rgba(128, 0, 0, 0.12);
    transform: translateY(-3px);
    color: #800000;
    text-decoration: none;
}
.mtc-media {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: #f6f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color .18s ease;
}
.mtc-box:hover .mtc-media {
    background: #f1e4e4;
}
.mtc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mtc-ph {
    width: 38px;
    height: 38px;
    fill: #800000;
}
.mtc-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mtc-count {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}
.mtc-box:hover .mtc-count {
    color: #a15b5b;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .mtc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .mtc-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .mtc-media { width: 64px; height: 64px; }
    .mtc-ph { width: 32px; height: 32px; }
    .mtc-name { font-size: 13px; }
    .mtc-title { font-size: 19px; }
}
@media (max-width: 479px) {
    .mtc-grid { grid-template-columns: repeat(2, 1fr); }
}
