/* ── Category Glossary A-Z — style.css ── */

.cg332-wrapper {
    font-family: inherit;
    width: 100%;
}

/* Search */
.cg332-search-wrap {
    margin-bottom: 20px;
}

.cg332-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333333;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cg332-search-input:focus {
    border-color: #2c5f5d;
    box-shadow: 0 0 0 3px rgba(44, 95, 93, 0.15);
}

/* Letter Navigation */
.cg332-letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
}

.cg332-letter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background-color: #eeeeee;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    padding: 0;
}

.cg332-letter-btn:hover,
.cg332-letter-btn.cg332-active {
    background-color: #2c5f5d;
    color: #ffffff;
}

.cg332-letter-btn.cg332-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* Letter Section */
.cg332-letter-section {
    margin-bottom: 32px;
}

.cg332-letter-section.cg332-hidden {
    display: none;
}

.cg332-letter-heading {
    font-size: 22px;
    font-weight: 700;
    color: #2c5f5d;
    border-bottom: 2px solid #2c5f5d;
    padding-bottom: 6px;
    margin: 0 0 14px 0;
    text-transform: uppercase;
}

/* Items List */
.cg332-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.cg332-item {
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cg332-item:hover {
    background-color: #edf4f4;
    box-shadow: 0 2px 10px rgba(44, 95, 93, 0.1);
    transform: translateY(-1px);
}

.cg332-item.cg332-hidden {
    display: none;
}

.cg332-item-link {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    text-decoration: none;
    gap: 4px;
}

.cg332-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cg332-item-count {
    font-size: 12px;
    color: #999999;
    font-weight: 400;
}

.cg332-item-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
    margin-top: 2px;
}

/* No Results */
.cg332-no-results {
    text-align: center;
    color: #888888;
    font-size: 15px;
    padding: 24px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .cg332-items-list {
        grid-template-columns: 1fr;
    }
    .cg332-letter-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
