.sh-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--b4-color-surface);
    border: 1px solid var(--b4-color-border);
    padding: 1.5rem 1rem 0;
    container-type: inline-size;
}

.sh-hero-title {
    color: var(--b4-color-primary-dark);
    font-size: 2rem;
    line-height: 1.1;
}

.sh-hero-subtitle {
    margin-top: 0.375rem;
    color: var(--b4-color-text);
    font-size: 1rem;
    font-weight: 600;
}

.sh-hero-img {
    display: block;
    width: 100%;
    max-width: 22rem;
    height: auto;
    justify-self: end;
    margin-bottom: 1rem;
}

@container (min-width: 36rem) {
    .sh-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
        padding: 1.75rem 0 0 1.75rem;
    }

    .sh-hero-title {
        font-size: 2.25rem;
    }

    .sh-hero-img {
        margin: 0 1.25rem 1.25rem 0;
    }
}

.sh-cats {
    margin-top: 0.75rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 1rem;
    background: var(--b4-color-surface);
    padding: 0.5rem;
}

.sh-cats-track {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sh-cats-track > li {
    flex: 1 0 6.5rem;
}

.sh-cat {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 0.625rem 0.375rem;
    color: var(--b4-color-text);
    text-align: center;
}

.sh-cat:hover {
    background: var(--b4-color-page);
}

.sh-cat-active {
    border-color: var(--b4-color-primary);
    background: var(--b4-color-success-bg);
    color: var(--b4-color-primary-dark);
}

.sh-cat-icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--b4-color-neutral-bg);
    color: var(--b4-color-primary-dark);
}

.sh-cat-icon-deal {
    font-size: 1rem;
    font-weight: 800;
}

.sh-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.sh-chip {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.625rem;
    background: var(--b4-color-surface);
    padding: 0 0.75rem;
    color: var(--b4-color-text);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    list-style: none;
}

.sh-chip::-webkit-details-marker {
    display: none;
}

.sh-chip:hover,
.sh-pop[open] > .sh-chip {
    border-color: var(--b4-color-primary);
}

.sh-chip-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--b4-color-primary);
}

.sh-pop {
    position: relative;
}

.sh-pop .st-pop-panel {
    min-width: 12rem;
}

.sh-stock {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
    cursor: pointer;
}

.sh-toggle {
    position: relative;
    width: 2.5rem;
    height: 1.5rem;
    appearance: none;
    border-radius: 9999px;
    background: #94a3b8;
    cursor: pointer;
    transition: background-color var(--b4-duration-fast) var(--b4-ease-standard);
}

.sh-toggle::after {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    background: var(--b4-color-surface);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.3);
    content: "";
    transition: transform var(--b4-duration-fast) var(--b4-ease-standard);
}

.sh-toggle:checked {
    background: var(--b4-color-primary);
}

.sh-toggle:checked::after {
    transform: translateX(1rem);
}

.sh-toggle:focus-visible {
    outline: 2px solid var(--b4-color-primary);
    outline-offset: 2px;
}

.sh-sort {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-left: auto;
}

.sh-view {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.625rem;
    color: var(--b4-color-text-muted);
}

.sh-view-active {
    border-color: var(--b4-color-primary-dark);
    background: #065f46;
    color: #fff;
}

.sh-results {
    margin-top: 0.75rem;
    scroll-margin-top: 1rem;
    container-name: shop;
    container-type: inline-size;
}

.sh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@container shop (min-width: 36rem) {
    .sh-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container shop (min-width: 50rem) {
    .sh-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sh-grid > li {
    display: flex;
}

.sh-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.875rem;
    background: var(--b4-color-surface);
}

.sh-card-media {
    position: relative;
}

.sh-card-img {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.sh-card-img-empty {
    background: linear-gradient(135deg, var(--b4-color-surface-muted), var(--b4-color-tint));
    color: var(--b4-color-primary);
}

.sh-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    border-radius: 0.375rem;
    background: #fbbf24;
    padding: 0.125rem 0.375rem;
    color: #422006;
    font-size: 0.6875rem;
    font-weight: 700;
}

.sh-card-heart {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
}

.sh-card-heart .mod-heart {
    background: var(--b4-color-surface);
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.2);
}

.sh-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0.625rem 0.75rem 0.75rem;
}

.sh-card-foot {
    margin-top: auto;
    padding-top: 0.5rem;
}

.sh-add {
    display: flex;
    min-height: 2.25rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid var(--b4-color-primary);
    border-radius: 0.5rem;
    color: var(--b4-color-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
}

button.sh-add {
    background: none;
    cursor: pointer;
}

a.sh-add:hover,
button.sh-add:hover {
    background: var(--b4-color-success-bg);
}

.sh-add-in {
    background: var(--b4-color-success-bg);
}

.sh-add-off {
    border-color: var(--b4-color-border);
    color: var(--b4-color-text-subtle);
}

.sh-grid-list {
    grid-template-columns: minmax(0, 1fr);
}

.sh-grid-list .sh-card {
    flex-direction: row;
}

.sh-grid-list .sh-card-media {
    width: 9rem;
    flex-shrink: 0;
}

.sh-grid-list .sh-card-img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 8rem;
}

.sh-grid-list .sh-card-foot {
    max-width: 14rem;
}

.sh-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    border-radius: 0.875rem;
    background: var(--b4-color-neutral-bg);
    padding: 0.875rem 1rem;
}

@container main (min-width: 44rem) {
    .sh-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sh-trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sh-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.sh-line-img {
    display: flex;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    object-fit: cover;
}

.sh-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.5rem;
    padding: 0.125rem;
}

.sh-qty-btn {
    display: flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: var(--b4-color-text);
    font-weight: 700;
}

a.sh-qty-btn:hover {
    background: var(--b4-color-neutral-bg);
}

.sh-qty-off {
    color: var(--b4-color-text-subtle);
    cursor: not-allowed;
}

.sh-remove {
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: var(--b4-color-text-muted);
}

.sh-remove:hover {
    background: var(--b4-color-danger-bg);
    color: var(--b4-color-danger-text);
}

.sh-checkout {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    border-radius: 0.625rem;
    background: #fbbf24;
    color: #422006;
    font-size: 0.875rem;
    font-weight: 700;
}

.sh-checkout:disabled {
    cursor: not-allowed;
}

.sh-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.sh-pay li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.5rem;
    padding: 0.375rem 0.5rem;
    color: var(--b4-color-text);
    font-size: 0.6875rem;
    font-weight: 600;
}
a.sh-checkout { text-decoration: none; justify-content: center; }

.sh-all-panel {
    display: grid;
    gap: 0.75rem;
    min-width: 16rem;
    max-height: 70vh;
    overflow-y: auto;
}

.sh-all-group {
    display: grid;
    gap: 0.125rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}
