/* ─────────────────────────────────────────────────────────────────────────────
   Store Page
───────────────────────────────────────────────────────────────────────────── */

.store-page {
    min-height: 100vh;
    background: linear-gradient(140deg, #0c2008 0%, #120c2e 55%, #0d1a2e 100%);
    margin-bottom: -96px;
}

/* Inner max-width container used everywhere */
.store-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Tab Bar ──────────────────────────────────────────────────────────────── */

.store-page-header {
    background: #0d1a2e;
    border-bottom: 1px solid #444b10;
    position: sticky;
    top: 66px; /* clear fixed navbar */
    z-index: 100;
}

.store-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    position: relative;
}

.store-tabs {
    display: flex;
    gap: 4px;
    align-items: center;
}

.store-tab-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.store-tab-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.store-tab-btn--active {
    background: #4c502b;
    color: #fff;
    font-weight: 600;
}

.store-tab-btn--active:hover {
    background: #1c2344;
    color: #fff;
}

.store-result-count {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #9ca3af;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Filter Bar ───────────────────────────────────────────────────────────── */

.store-filter-bar {
    background: #0D1A2E;
    border-bottom: 1px solid #444b10;
}

.store-filter-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.store-search-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.store-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    font-size: 16px;
    line-height: 1;
}

.store-search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.store-search-input:focus {
    border-color: #f18805;
    box-shadow: 0 0 0 3px rgba(241, 136, 5, 0.12);
    background: #fff;
}

.store-search-input::placeholder {
    color: #b0b8c1;
}

.store-filter-select {
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.store-filter-select:focus {
    border-color: #f18805;
}

.store-filter-divider {
    width: 1px;
    height: 22px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.store-filter-reset {
    background: none;
    border: none;
    font-size: 13px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 2px;
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.15s;
}

.store-filter-reset:hover {
    color: #374151;
}

/* ── Content Area ─────────────────────────────────────────────────────────── */

.store-content {
    padding: 16px 0 96px;
    margin-bottom: -96px;
}

/* ── Results Header ───────────────────────────────────────────────────────── */

.store-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.store-showing-count {
    font-size: 13px;
    color: #9ca3af;
}

/* ── Grid ─────────────────────────────────────────────────────────────────── */

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

/* ── Store Card ───────────────────────────────────────────────────────────── */

.store-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 350px;
}

.store-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.store-card:focus {
    outline: 2px solid #f18805;
    outline-offset: 2px;
}

/* Thumbnail */
.store-card__thumb {
    position: relative;
    height: 156px;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
}

.store-card__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-card:hover .store-card__thumb-img {
    transform: scale(1.03);
}

.store-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f1f3 0%, #e4e6ea 100%);
}

.store-card__thumb-placeholder img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    opacity: 0.5;
}

/* Price badge */
.store-card__price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.store-card__price--free {
    background: #1E9F22;
    color: #fff;
}

.store-card__price--paid {
    background: #0F1429;
    color: #fff;
}

/* Body */
.store-card__body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.store-card__platform-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-card__platform-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.store-card__platform-name {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
}

.store-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card__desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.store-card__tag {
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

/* Footer */
.store-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    border-top: 1px solid #f3f4f6;
}

.store-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    min-width: 0;
}

.store-card__avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #6b7280;
}

.store-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card__username {
    font-size: 11px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-card__likes {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.store-card__likes svg {
    width: 14px;
    height: 14px;
}

/* ── Empty / Loading States ───────────────────────────────────────────────── */

.store-empty {
    text-align: center;
    padding: 80px 20px;
}

.store-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px;
}

.store-empty__sub {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}

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

.store-skeleton-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    overflow: hidden;
}

.store-skeleton-thumb {
    height: 156px;
    background: linear-gradient(90deg, #f0f1f3 25%, #e8e9ec 50%, #f0f1f3 75%);
    background-size: 200% 100%;
    animation: store-shimmer 1.4s infinite;
}

.store-skeleton-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f1f3 25%, #e8e9ec 50%, #f0f1f3 75%);
    background-size: 200% 100%;
    animation: store-shimmer 1.4s infinite;
    border-radius: 6px;
}

.store-skeleton-line--short { width: 55%; }
.store-skeleton-line--medium { width: 80%; }
.store-skeleton-line--long { width: 95%; }

@keyframes store-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.store-pagination-wrap {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

/* ── Workshop Tab ─────────────────────────────────────────────────────────── */

.store-workshop {
    padding-top: 4px;
}

.store-workshop__heading {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
}

.store-workshop__sub {
    font-size: 14px;
    color: #99a9c9;
    margin: 0 0 32px;
}

.store-workshop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* Tool Card */
.tool-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 28px 22px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    gap: 10px;
}

.tool-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.tool-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tool-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    flex-shrink: 0;
    margin-bottom: 4px;
}

.tool-card__name {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1;
}

.tool-card__tagline {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: -4px 0 0;
}

.tool-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.tool-card__btn {
    margin-top: 6px;
    padding: 10px 0;
    background: #0F1429;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    width: 100%;
    letter-spacing: 0.01em;
}

.tool-card__btn:hover {
    background: #1c2344;
}

.tool-card--soon {
    opacity: 0.45;
    pointer-events: none;
}

/* ── Pulse Tab Button ─────────────────────────────────────────────────────── */

.store-tab-btn--pulse {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-tab-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E5359A;
    flex-shrink: 0;
    animation: pulse-live 2s ease-in-out infinite;
}

.store-tab-btn--active .store-tab-pulse-dot {
    background: #fff;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Pulse Tab ────────────────────────────────────────────────────────────── */

.pulse-tab {
    padding-top: 4px;
}

.pulse-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pulse-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: pulse-live 2s ease-in-out infinite;
}

.pulse-heading {
    font-size: 22px;
    font-weight: 800;
    color: #FFF;
    margin: 0;
    line-height: 1;
}

.pulse-sub {
    font-size: 14px;
    color: #99a9c9;
    margin: 0;
    max-width: 540px;
    line-height: 1.5;
}

.pulse-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pulse-refresh-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pulse-refresh-btn--spinning svg {
    animation: pulse-spin 0.8s linear infinite;
}

@keyframes pulse-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Source Pills ─────────────────────────────────────────────────────────── */

.pulse-sources {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pulse-source-pill {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.pulse-source-pill:hover {
    background: #f3f4f6;
    color: #111827;
}

.pulse-source-pill--active {
    background: #0F1429;
    border-color: #0F1429;
    color: #fff;
}

.pulse-source-pill--active:hover {
    background: #1c2344;
    border-color: #1c2344;
    color: #fff;
}

.pulse-last-updated {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}

/* ── Pulse Grid ───────────────────────────────────────────────────────────── */

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

/* ── Pulse Card ───────────────────────────────────────────────────────────── */

.pulse-card {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.pulse-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.pulse-card__thumb {
    height: 140px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.pulse-card__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pulse-card:hover .pulse-card__thumb-img {
    transform: scale(1.03);
}

.pulse-card__thumb-placeholder,
.pulse-card__thumb--no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--src-color, #6b7280) 12%, #f3f4f6) 0%,
        color-mix(in srgb, var(--src-color, #6b7280) 6%, #eef0f3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-card__thumb-placeholder::after {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--src-color, #6b7280) 18%, transparent);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--src-color, #6b7280) 8%, transparent);
}

.pulse-card__body {
    padding: 16px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pulse-card__source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pulse-card__source-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.pulse-card__time {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.pulse-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pulse-card__snippet {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pulse-card__footer {
    padding: 10px 16px 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.pulse-card__read-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    transition: color 0.15s;
}

.pulse-card:hover .pulse-card__read-link {
    color: #111827;
}

/* ── Skeleton ─────────────────────────────────────────────────────────────── */

.pulse-card--skeleton {
    pointer-events: none;
    gap: 10px;
    padding: 16px;
}

.pulse-skeleton-source,
.pulse-skeleton-title,
.pulse-skeleton-desc,
.pulse-skeleton-footer {
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f1f3 25%, #e8e9ec 50%, #f0f1f3 75%);
    background-size: 200% 100%;
    animation: store-shimmer 1.4s infinite;
}

.pulse-skeleton-source {
    height: 20px;
    width: 70px;
}

.pulse-skeleton-title {
    height: 14px;
    width: 100%;
}

.pulse-skeleton-title--short {
    width: 65%;
}

.pulse-skeleton-desc {
    height: 12px;
    width: 100%;
}

.pulse-skeleton-desc--short {
    width: 80%;
}

.pulse-skeleton-footer {
    height: 12px;
    width: 45%;
    margin-top: 4px;
}

/* ── Error State ──────────────────────────────────────────────────────────── */

.pulse-error {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pulse-error__icon {
    font-size: 28px;
    opacity: 0.5;
}

.pulse-error__msg {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.pulse-error__retry {
    padding: 8px 20px;
    background: #0F1429;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 4px;
}

.pulse-error__retry:hover {
    background: #1c2344;
}

/* ── Credit line ──────────────────────────────────────────────────────────── */

.pulse-credit {
    font-size: 11px;
    color: #c4c9d4;
    text-align: center;
    margin: 32px 0 0;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}


/* ── Back to Store Button ─────────────────────────────────────────────────── */

.back-to-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 8px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 16px;
}

.back-to-store-btn__arrow {
    display: inline-block;
    transition: transform 0.18s ease;
    font-size: 0.85rem;
    line-height: 1;
}

.back-to-store-btn:hover .back-to-store-btn__arrow {
    transform: translateX(-3px);
}

.back-to-store-btn--light {
    color: #6b7280;
    border-color: #e5e7eb;
    background: #f9fafb;
}

.back-to-store-btn--light:hover {
    color: #0F1429;
    border-color: #d1d5db;
    background: #f3f4f6;
}

.back-to-store-btn--dark {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.back-to-store-btn--dark:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

/* In global dark mode, --light variant flips to subtle dark styling */
[data-theme="dark"] .back-to-store-btn--light {
    color: rgba(255, 255, 255, 0.50);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .back-to-store-btn--light:hover {
    color: rgba(255, 255, 255, 0.90);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.10);
}

/* In global light mode, --dark variant flips to neutral light styling */
html[data-theme="light"] .back-to-store-btn--dark {
    color: #6b7280;
    border-color: #e5e7eb;
    background: #f9fafb;
}
html[data-theme="light"] .back-to-store-btn--dark:hover {
    color: #0F1429;
    border-color: #d1d5db;
    background: #f3f4f6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STORE LIGHT MODE  [data-theme="light"]
═══════════════════════════════════════════════════════════════════════════ */

.store-page[data-theme="light"] {
    background: #f4f6f9;
}
.store-page[data-theme="light"] .store-page-header {
    background: #ffffff;
    border-bottom-color: #e5e7eb;
}
.store-page[data-theme="light"] .store-tab-btn { color: #6b7280; }
.store-page[data-theme="light"] .store-tab-btn:hover { background: #f3f4f6; color: #111827; }
.store-page[data-theme="light"] .store-tab-btn--active { background: #111827; color: #fff; }
.store-page[data-theme="light"] .store-tab-btn--active:hover { background: #1f2937; }
.store-page[data-theme="light"] .store-result-count { color: #6b7280; }
.store-page[data-theme="light"] .store-filter-bar { background: #ffffff; border-bottom-color: #e5e7eb; }
.store-page[data-theme="light"] .store-filter-divider { background: #d1d5db; }
.store-page[data-theme="light"] .store-filter-reset { color: #9ca3af; }
.store-page[data-theme="light"] .store-filter-reset:hover { color: #374151; }
/* Workshop headings */
.store-page[data-theme="light"] .store-workshop__heading { color: #111827; }
.store-page[data-theme="light"] .store-workshop__sub { color: #6b7280; }
/* Workshop tool card launch button — keep dark */
.store-page[data-theme="light"] .tool-card__btn { background: #111827; }
.store-page[data-theme="light"] .tool-card__btn:hover { background: #1f2937; }
/* Empty state */
.store-page[data-theme="light"] .store-empty__title { color: #374151; }
.store-page[data-theme="light"] .store-empty__sub { color: #9ca3af; }

/* ═══════════════════════════════════════════════════════════════════════════
   STORE DARK MODE  [data-theme="dark"]  — card & chrome overrides
═══════════════════════════════════════════════════════════════════════════ */

/* Tab hover in dark mode */
.store-page[data-theme="dark"] .store-tab-btn:hover { background: rgba(255,255,255,0.08); color: #e5e7eb; }
/* Filter bar inputs & selects */
.store-page[data-theme="dark"] .store-search-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #e5e7eb; }
.store-page[data-theme="dark"] .store-search-input::placeholder { color: rgba(255,255,255,0.30); }
.store-page[data-theme="dark"] .store-search-input:focus { background: rgba(255,255,255,0.09); border-color: #f18805; }
.store-page[data-theme="dark"] .store-filter-select { background-color: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #e5e7eb; }
.store-page[data-theme="dark"] .store-filter-divider { background: rgba(255,255,255,0.12); }
.store-page[data-theme="dark"] .store-filter-reset { color: rgba(255,255,255,0.40); }
.store-page[data-theme="dark"] .store-filter-reset:hover { color: #e5e7eb; }
/* Dark store cards */
.store-page[data-theme="dark"] .store-card { background: #0f1c2e; border-color: rgba(255,255,255,0.07); }
.store-page[data-theme="dark"] .store-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.store-page[data-theme="dark"] .store-card__thumb { background: #0a1420; }
.store-page[data-theme="dark"] .store-card__thumb-placeholder { background: linear-gradient(135deg, #0d1f35 0%, #0a1928 100%); }
.store-page[data-theme="dark"] .store-card__platform-name { color: #64748b; }
.store-page[data-theme="dark"] .store-card__title { color: #f1f5f9; }
.store-page[data-theme="dark"] .store-card__desc { color: #64748b; }
.store-page[data-theme="dark"] .store-card__tag { background: rgba(255,255,255,0.06); color: #94a3b8; }
.store-page[data-theme="dark"] .store-card__footer { border-top-color: rgba(255,255,255,0.06); }
.store-page[data-theme="dark"] .store-card__avatar { background: rgba(255,255,255,0.08); color: #94a3b8; }
.store-page[data-theme="dark"] .store-card__username { color: #64748b; }
.store-page[data-theme="dark"] .store-card__likes { color: #64748b; }
/* Dark skeletons */
.store-page[data-theme="dark"] .store-skeleton-card { background: #0f1c2e; border-color: rgba(255,255,255,0.06); }
.store-page[data-theme="dark"] .store-skeleton-thumb { background: linear-gradient(90deg, #0d1f35 25%, #132840 50%, #0d1f35 75%); background-size: 200% 100%; }
.store-page[data-theme="dark"] .store-skeleton-line { background: linear-gradient(90deg, #0d1f35 25%, #132840 50%, #0d1f35 75%); background-size: 200% 100%; }
/* Dark empty state */
.store-page[data-theme="dark"] .store-empty__title { color: #e5e7eb; }
.store-page[data-theme="dark"] .store-empty__sub { color: #64748b; }
/* Dark workshop cards */
.store-page[data-theme="dark"] .tool-card { background: #0f1c2e; border-color: rgba(255,255,255,0.07); }
.store-page[data-theme="dark"] .tool-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.store-page[data-theme="dark"] .tool-card__name { color: #f1f5f9; }
.store-page[data-theme="dark"] .tool-card__tagline { color: #64748b; }
.store-page[data-theme="dark"] .tool-card__desc { color: #64748b; }

/* ── Paginator — theme-aware indicator ────────────────────────────────────── */
.store-page[data-theme="dark"] #pagination-search-pages-showing { background-color: #5f6b00 !important; }
.store-page[data-theme="light"] #pagination-search-pages-showing { background-color: #0d1a2e !important; color: #fff !important; }
