.collection-save-btn,
.collection-remove-btn {
    border: 0;
    cursor: pointer;
}

.collection-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.collection-save-btn:hover {
    background: #374151;
    color: #ffffff;
}

.collection-save-btn[data-collection-saved="true"] {
    background: #0f766e;
}

.collection-save-btn:focus-visible,
.collection-remove-btn:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.profile-collection-button {
    margin: 18px auto 0;
}

.qa-collection-button,
.product-collection-button {
    flex-shrink: 0;
}

.post-footer .collection-save-btn {
    min-height: auto;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.post-footer .collection-save-btn[data-collection-saved="true"] {
    background: transparent;
    color: #0f766e;
}

.person-card-shell,
.mini-profile-card-shell {
    position: relative;
}

.person-card-shell .collection-save-btn,
.mini-profile-card-shell .collection-save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    min-width: 86px;
}

.product-section .brand-info-container {
    gap: 10px;
}

.qa-image {
    position: relative;
}

.qa-image-product-save {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
}

.collection-nav-link {
    position: relative;
}

.collection-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.collection-nav-link .collection-count {
    position: absolute;
    top: -4px;
    right: -4px;
}

.collection-root {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.collection-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collection-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.collection-group-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.collection-group-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.collection-card {
    position: relative;
    min-height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.collection-card-link {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 128px;
    color: inherit;
    text-decoration: none;
}

.collection-card-media {
    background: #f3f4f6;
}

.collection-card-media img,
.collection-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
}

.collection-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 28px;
}

.collection-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 14px 44px 14px 14px;
}

.collection-card-type {
    color: #0f766e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.collection-card h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.collection-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.collection-card-cta {
    margin-top: auto;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.collection-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
}

.collection-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.collection-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 56px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.collection-empty i {
    color: #0f766e;
    font-size: 42px;
}

.collection-empty h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
}

.collection-empty p {
    max-width: 520px;
    margin: 0;
    color: #6b7280;
}

@media (max-width: 576px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-card-link {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .person-card-shell .collection-save-btn,
    .mini-profile-card-shell .collection-save-btn {
        position: static;
        width: 100%;
        margin-top: 8px;
    }
}
