.jimoto-shop-section {
    margin: 24px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.jimoto-shop-header {
    margin: 0 0 16px;
}

.jimoto-shop-label {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #00377F;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.jimoto-shop-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #222222;
    line-height: 1.4;
}

.jimoto-shop-lead {
    margin: 8px 0 0;
    color: #555555;
    line-height: 1.7;
    font-size: 14px;
}

.jimoto-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    box-sizing: border-box;
}

.jimoto-shop-toolbar-label {
    font-size: 13px;
    font-weight: 700;
    color: #333333;
    line-height: 1.5;
}

.jimoto-shop-sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jimoto-shop-sort-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #e8eef7;
    color: #00377F;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.5;
}

.jimoto-shop-sort-btn.is-active,
.jimoto-shop-sort-btn:hover {
    background: #00377F;
    color: #ffffff;
}

.jimoto-shop-output {
    box-sizing: border-box;
}

.jimoto-shop-loading,
.jimoto-shop-error,
.jimoto-shop-empty,
.jimoto-shop-cache-note {
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #444444;
    line-height: 1.6;
    font-size: 14px;
}

.jimoto-shop-cache-note {
    margin-bottom: 12px;
    font-size: 13px;
    background: #f0fdf4;
    color: #166534;
}

.jimoto-shop-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jimoto-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    cursor: default;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: jimotoShopFadeIn 0.22s ease-out;
}

@keyframes jimotoShopFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jimoto-shop-card.is-clickable-photo {
    cursor: pointer;
}

.jimoto-shop-card.is-clickable-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.jimoto-shop-card.rank-top {
    border-color: #d7b45a;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 70%);
}

.jimoto-shop-osusume-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.jimoto-shop-osusume-badge.osusume-gold {
    background: linear-gradient(135deg, #f6d365 0%, #d4a017 100%);
    color: #3a2500;
}

.jimoto-shop-osusume-badge.osusume-silver {
    background: linear-gradient(135deg, #f4f6f8 0%, #aeb7c2 100%);
    color: #1f2937;
}

.jimoto-shop-osusume-badge.osusume-bronze {
    background: linear-gradient(135deg, #c98b45 0%, #7c4a18 100%);
    color: #fffaf0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.jimoto-shop-osusume-badge.osusume-white {
    background: rgba(255, 255, 255, 0.94);
    color: #00377F;
    border: 1px solid rgba(0, 55, 127, 0.22);
}

.jimoto-shop-photo-box {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.jimoto-shop-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.jimoto-shop-photo-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 13px;
}

.jimoto-shop-card.is-clickable-photo .jimoto-shop-photo-placeholder::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(0, 55, 127, 0.08);
}

.jimoto-shop-info,
.jimoto-shop-card-main {
    padding: 14px 14px 16px;
    flex: 1;
    min-width: 0;
}

.jimoto-shop-name {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    color: #222222;
}

.jimoto-shop-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #444444;
    line-height: 1.8;
    font-size: 14px;
}

.jimoto-shop-meta a {
    color: #00377F;
    font-weight: 700;
    text-decoration: none;
}

.jimoto-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jimoto-shop-action-link,
.jimoto-shop-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef5ff;
    color: #00377F;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.5;
}

.jimoto-shop-action-link:hover,
.jimoto-shop-link-btn:hover {
    background: #dbeafe;
    color: #00295f;
    text-decoration: none;
}

@media (max-width: 760px) {
    .jimoto-shop-section {
        padding: 16px;
    }

    .jimoto-shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .jimoto-shop-sort-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .jimoto-shop-sort-btn {
        width: 100%;
        padding: 10px 12px;
    }

    .jimoto-shop-list {
        grid-template-columns: 1fr;
    }

    .jimoto-shop-photo-box,
    .jimoto-shop-photo,
    .jimoto-shop-photo-placeholder {
        height: 180px;
    }

    .jimoto-shop-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .jimoto-shop-action-link,
    .jimoto-shop-link-btn {
        text-align: center;
    }
}