.store-site {
    color: var(--ink);
    background: var(--paper);
    letter-spacing: 0;
}
.store-site * {
    box-sizing: border-box;
}
.store-site :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.store-site a {
    color: inherit;
}
.store-site button,
.store-site input,
.store-site select,
.store-site textarea {
    font: inherit;
    letter-spacing: 0;
}
.store-site button {
    cursor: pointer;
}
.store-site button:disabled {
    opacity: 0.5;
    cursor: wait;
}
.store-site input:not([type='checkbox']),
.store-site select,
.store-site textarea {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
}
.store-site textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.store-site input[type='checkbox'] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}
.store-site .site-top {
    background: rgba(255, 255, 255, 0.97);
}
.store-site .font-logo {
    text-decoration: none;
}
.store-menu-toggle {
    position: absolute;
    right: 24px;
    top: 12px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    display: grid;
    place-items: center;
}
#store-menu {
    position: absolute;
    top: 60px;
    right: 24px;
    width: 250px;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 36px #00000012;
}
#store-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
}
#store-menu a:hover {
    background: #f4f4f4;
}
.store-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    text-decoration: none;
}
.store-icon:hover {
    border-color: var(--ink);
}
.store-site svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}
.store-skip {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 400;
    padding: 12px;
    background: white;
}
.store-skip:focus {
    top: 12px;
}
#store-main {
    min-height: 60vh;
    outline: none;
}
.store-shell {
    width: min(1440px, 100%);
    margin: auto;
    padding: 52px 40px 80px;
}
.store-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 38px;
}
.store-heading h1 {
    margin: 0 0 10px;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
}
.store-heading p {
    margin: 0;
    color: #626262;
    font-size: 16px;
    line-height: 1.6;
}
.store-kicker {
    font-size: 10px;
    font-weight: 600;
    margin: 0 0 16px;
}
.store-tools {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--line);
}
.store-search {
    position: relative;
    flex: 1;
    max-width: 340px;
}
.store-search svg {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 17px;
}
.store-site .store-search input {
    padding-left: 38px;
}
.store-tools select {
    width: auto;
}
.store-count {
    margin-left: auto;
    font-size: 12px;
    color: #686868;
    white-space: nowrap;
}
.store-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 22px 0 28px;
}
.store-filters button {
    border: 0;
    padding: 6px 0;
    background: none;
    font-size: 13px;
    color: #666;
    border-bottom: 2px solid transparent;
}
.store-filters button[aria-pressed='true'] {
    color: var(--ink);
    border-color: var(--accent);
}
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 28px;
}
.store-product {
    min-width: 0;
}
.store-product a {
    text-decoration: none;
    display: block;
}
.store-media {
    aspect-ratio: 4/3;
    background: #f2f2f2;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 4px;
}
.store-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.store-product a:hover img {
    transform: scale(1.025);
}
.store-product a:hover h2 {
    color: var(--accent);
}
.store-product h2 {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 500;
    margin: 0;
    overflow-wrap: anywhere;
}
.store-product-meta {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding-top: 19px;
}
.store-product-meta > span {
    font-size: 13px;
    padding-top: 5px;
    flex-shrink: 0;
    max-width: 45%;
    overflow-wrap: anywhere;
    text-align: right;
}
.store-product p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0 0;
}
.store-product .store-category {
    color: var(--accent);
    font-size: 11px;
    margin-bottom: 8px;
}
.store-state {
    text-align: center;
    padding: 100px 24px;
    grid-column: 1/-1;
    color: #666;
}
.store-state h2 {
    color: var(--ink);
    font-size: 26px;
    font-weight: 500;
}
.store-button {
    border: 1px solid var(--ink);
    padding: 13px 20px;
    background: white;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    min-height: 44px;
}
.store-button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}
.store-button:hover {
    filter: brightness(0.96);
}
.store-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 30px;
}
.store-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 64px;
    align-items: start;
}
.store-detail-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.store-detail-media {
    display: grid;
    gap: 20px;
}
.store-detail h1 {
    font-size: 44px;
    line-height: 1.12;
    font-weight: 500;
    margin: 12px 0 20px;
    overflow-wrap: anywhere;
}
.store-detail p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}
.store-detail h2 {
    font-size: 17px;
    margin: 30px 0 10px;
}
.store-prose {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.store-buy {
    display: grid;
    gap: 14px;
    margin: 28px 0;
}
.store-buy .store-price {
    font-size: 26px;
}
.store-buy select {
    max-width: 130px;
}
.store-detail small {
    color: #666;
}
.store-related {
    margin-top: 80px;
}
.store-related h2 {
    font-weight: 500;
    font-size: 24px;
}
.store-footer {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr 1.2fr;
    gap: 40px;
    padding: 48px 40px 22px;
    border-top: 1px solid var(--line);
}
.store-footer h2 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 14px;
}
.store-footer h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 12px;
}
.store-footer p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}
.store-footer nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    font-size: 12px;
}
.store-footer nav a {
    text-decoration: none;
}
.store-footer nav a:hover {
    color: var(--accent);
}
.store-subscribe-row {
    display: flex;
    gap: 8px;
    margin: 20px 0 12px;
}
.store-check {
    display: flex;
    align-items: start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
}
.store-copyright {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    font-size: 10px;
    color: #666;
}
.store-status {
    min-height: 20px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.store-status.error {
    color: #b3261e;
}
#store-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    padding: 40px 32px 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    overflow: auto;
}
#store-dialog::backdrop {
    background: #0006;
}
.store-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
}
#store-dialog h2 {
    font-size: 26px;
    margin: 12px 0 20px;
    padding-right: 20px;
    font-weight: 500;
}
.store-form {
    display: grid;
    gap: 18px;
}
.store-form label:not(.store-check) {
    display: grid;
    gap: 8px;
    font-size: 12px;
    min-width: 0;
}
.store-form .store-button {
    justify-self: start;
}
.store-form small {
    color: #666;
    line-height: 1.6;
}
.store-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.store-article {
    max-width: 760px;
    margin: auto;
}
.store-article h1 {
    font-size: 36px;
    font-weight: 500;
}
.store-article p {
    line-height: 1.8;
}
.store-admin-tabs {
    display: flex;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.store-admin-tabs button {
    background: none;
    border: 0;
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}
.store-admin-tabs button[aria-selected='true'] {
    color: var(--accent);
}
.store-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.store-admin-table td,
.store-admin-table th {
    text-align: left;
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
}
.store-admin-table th {
    font-size: 11px;
    color: #666;
}
.store-admin-table img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}
.store-admin-table .store-actions {
    display: flex;
    gap: 6px;
}
.store-table-wrap {
    overflow-x: auto;
}
.store-editor {
    max-width: 900px;
    margin: auto;
}
.store-editor fieldset {
    border: 0;
    padding: 0;
    margin: 12px 0;
    display: grid;
    gap: 18px;
    min-width: 0;
}
.store-editor legend {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
}
.store-editor-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--line);
    z-index: 2;
}
.store-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.store-upload-item {
    min-width: 0;
}
.store-upload-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #f2f2f2;
}
.store-upload-actions {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}
.store-pill {
    font-size: 11px;
    color: #666;
}
.store-category-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 12px;
}
.store-admin-notice {
    padding: 16px 0;
    color: #666;
    line-height: 1.6;
    font-size: 13px;
}
@media (max-width: 800px) {
    .store-shell {
        padding: 32px 24px 60px;
    }
    .store-heading h1 {
        font-size: 36px;
    }
    .store-detail {
        gap: 32px;
        grid-template-columns: 1fr;
    }
    .store-detail-media {
        order: 1;
    }
    .store-detail h1 {
        font-size: 36px;
    }
    .store-footer {
        grid-template-columns: 1fr 1fr;
        padding: 32px 24px 20px;
    }
    .store-footer form {
        grid-column: 1/-1;
        max-width: 480px;
    }
}
@media (max-width: 540px) {
    .store-site .font-logo {
        font-size: 13px;
        letter-spacing: 3px;
    }
    .store-menu-toggle {
        right: 10px;
    }
    .store-heading {
        display: block;
        margin-bottom: 26px;
    }
    .store-heading h1 {
        font-size: 32px;
    }
    .store-heading p {
        font-size: 14px;
    }
    .store-tools {
        flex-wrap: wrap;
        gap: 10px;
    }
    .store-search {
        flex-basis: 100%;
        max-width: none;
    }
    .store-count {
        font-size: 11px;
    }
    .store-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .store-product h2 {
        font-size: 22px;
    }
    .store-footer {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .store-footer nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 14px 20px;
    }
    .store-form-row {
        grid-template-columns: 1fr;
    }
    .store-upload-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .store-detail-media {
        order: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .store-site * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
