/* =============================================
   Dynamic Category Grid — Frontend Styles
   v1.1.0
   ============================================= */

.dcg-grid {
    display: grid;
    gap: 30px;
    align-items: start;
}

/* Column */
.dcg-col {
    min-width: 0;
    /* prevent grid blowout */
}

/* Heading */
.dcg-heading {
    margin: 0 0 12px 0;
    font-weight: 700;
    line-height: 1.3;
}

.dcg-heading a {
    text-decoration: none;
    color: inherit;
}

.dcg-heading a:hover {
    text-decoration: underline;
}

/* List */
.dcg-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dcg-list li {
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.dcg-list li+li {
    margin-top: 8px;
}

.dcg-list a {
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
}

.dcg-list a:hover {
    color: #000;
}

/* Product count badge */
.dcg-count {
    font-size: 0.85em;
    color: #999;
}

/* Sub-list (depth 2) */
.dcg-sublist {
    list-style: none;
    margin: 4px 0 0 16px;
    padding: 0;
}

.dcg-sublist li+li {
    margin-top: 4px;
}

.dcg-sublist a {
    font-size: 0.92em;
}

/* Empty state in editor */
.dcg-empty {
    color: #aaa;
    font-size: 13px;
    font-style: italic;
}

/* ── Responsive fallbacks ──
   These kick in when "Auto" is selected (no Elementor
   responsive selector overrides the inline style).
   When the user picks an explicit number, Elementor's
   responsive selectors take over at each breakpoint. */
@media (max-width: 1024px) {
    .dcg-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .dcg-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .dcg-grid {
        grid-template-columns: 1fr !important;
    }
}