/* Store section */
.logo-suffix {
    font-size: 0.85rem;
    font-weight: 500;
    color: #79c0ff;
    margin-left: 0.35rem;
    padding: 0.15rem 0.5rem;
    background: rgba(121, 192, 255, 0.12);
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.store-subnav {
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    position: sticky;
    top: 57px;
    z-index: 90;
}

.store-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    flex-wrap: wrap;
}

.store-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.store-tab {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.store-tab:hover {
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.08);
}

.store-tab.active {
    color: #f0f6fc;
    background: rgba(121, 192, 255, 0.15);
    border: 1px solid #388bfd40;
}

.store-search-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 360px;
    min-width: 180px;
}

.store-search-input {
    flex: 1;
    background: #0a0c10;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: #e6edf3;
    font-family: inherit;
}

.store-search-input:focus {
    outline: none;
    border-color: #388bfd;
}

.store-search-btn {
    background: #1f6feb;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.store-search-btn:hover {
    background: #388bfd;
}

.store-page-header {
    margin-bottom: 1.5rem;
}

.store-page-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.35rem;
}

.store-page-header p {
    font-size: 0.9rem;
    color: #8b949e;
}

.store-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s;
}

.store-card:hover {
    border-color: #79c0ff;
    transform: translateY(-1px);
}

.store-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: #0a0c10;
    border: 1px solid #30363d;
}

.store-card-icon.store-icon-has-image,
.store-detail-icon.store-icon-has-image {
    padding: 0;
    background: #0a0c10;
}

.store-card-icon img,
.store-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-icon-letter {
    line-height: 1;
}

.store-card-body {
    flex: 1;
    min-width: 0;
}

.store-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #79c0ff;
    margin-bottom: 0.4rem;
}

.store-card-desc {
    font-size: 0.85rem;
    color: #c9d1d9;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-meta {
    font-size: 0.75rem;
    color: #6e7681;
    margin-top: 0.5rem;
}

.store-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #8b949e;
    background: #0d1117;
    border: 1px dashed #30363d;
    border-radius: 12px;
}

/* Item detail page */
.store-breadcrumbs {
    font-size: 0.8rem;
    color: #6e7681;
    margin-bottom: 1.25rem;
}

.store-breadcrumbs a {
    color: #8b949e;
    text-decoration: none;
}

.store-breadcrumbs a:hover {
    color: #79c0ff;
}

.store-breadcrumbs span {
    color: #e6edf3;
}

.store-detail-card {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.store-detail-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.store-detail-icon {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    background: #0a0c10;
    border: 1px solid #30363d;
}

.store-detail-info h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.75rem;
}

.store-detail-info p {
    font-size: 0.9rem;
    color: #c9d1d9;
    line-height: 1.6;
}

.store-files-section {
    background: #0d1117;
    border: 1px solid #21262d;
    border-radius: 12px;
    overflow: hidden;
}

.store-files-title {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #79c0ff;
    border-bottom: 1px solid #21262d;
}

.store-files-table {
    width: 100%;
    border-collapse: collapse;
}

.store-files-table th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6e7681;
    font-weight: 500;
    border-bottom: 1px solid #21262d;
}

.store-files-table td {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #21262d;
    vertical-align: middle;
}

.store-files-table tr:last-child td {
    border-bottom: none;
}

.store-file-name {
    color: #79c0ff;
    text-decoration: underline;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.store-file-name:hover {
    color: #a5d6ff;
}

.store-tag {
    display: inline-block;
    background: #21262d;
    color: #c9d1d9;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
}

.store-file-meta {
    color: #6e7681;
    font-size: 0.8rem;
    white-space: nowrap;
}

.store-download-btn {
    display: inline-block;
    background: #1f6feb;
    color: white;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.15s;
}

.store-download-btn:hover {
    background: #388bfd;
}

.store-files-mobile {
    display: none;
}

.store-file-card {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #21262d;
}

.store-file-card:last-child {
    border-bottom: none;
}

.store-file-card .store-file-name {
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.store-back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #79c0ff;
    text-decoration: none;
    font-size: 0.85rem;
}

.store-back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .store-subnav {
        top: auto;
        position: relative;
    }

    .store-subnav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem 1rem;
    }

    .store-tabs {
        justify-content: center;
    }

    .store-search-form {
        max-width: none;
        width: 100%;
    }

    .store-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .store-card-icon {
        width: 64px;
        height: 64px;
    }

    .store-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .store-detail-icon {
        width: 96px;
        height: 96px;
    }

    .store-files-table {
        display: none;
    }

    .store-files-mobile {
        display: block;
    }

    .logo-suffix {
        font-size: 0.75rem;
    }
}
