/* ショップページ全体 */
.shop-page {
    max-width: 900px;
    margin: 0 auto;
}

.shop-page__header {
    margin-bottom: 20px;
}

.shop-page__title {
    margin-bottom: 8px;
}

.shop-page__lead {
    margin: 0 0 10px;
    color: #5f5a55;
    font-size: 0.95rem;
}

.shop-page__status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #4f453d;
    font-size: 0.92rem;
}

.shop-page__status span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 1px 4px rgba(70, 55, 45, 0.06);
}

/* 販売セクション */
.shop-section {
    margin-top: 18px;
}

.main-content h2.shop-section__title,
.shop-section__title {
    margin: 0 0 12px;
    padding: 0;
    border-bottom: none;
    color: #3f332c;
    font-size: 1.18rem;
}

.shop-item-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shop-empty {
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    color: #6b625a;
    text-align: center;
}

/* 販売アイテムカード */
.shop-item-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(120, 105, 90, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 8px rgba(70, 55, 45, 0.06);
}

.shop-item-card__image-wrap {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
}

.shop-item-card__image {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.shop-item-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-item-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.main-content h3.shop-item-card__name,
.shop-item-card__name {
    margin: 0;
    padding: 0;
    border-bottom: none;
    color: #3f332c;
    font-size: 1.08rem;
}

.shop-item-card__price {
    flex: 0 0 auto;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(90, 78, 66, 0.10);
    color: #4b4038;
    font-weight: 700;
}

.shop-item-card__description {
    line-height: 1.75;
}

.shop-item-card__description--empty {
    color: #8a8179;
}

/* 購入フォーム */
.shop-purchase-form {
    margin-top: 12px;
}

.shop-purchase-form__button {
    padding: 7px 18px;
    border: none;
    border-radius: 999px;
    background: #5d5148;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.shop-purchase-form__button:hover,
.shop-purchase-form__button:focus-visible {
    background: #75685e;
    color: #fff;
}

.shop-purchase-form__button:active {
    background: #4a4039;
    color: #fff;
}

.shop-purchase-form__button:disabled,
.shop-purchase-form__button[disabled] {
    background: rgba(93, 81, 72, 0.28);
    color: rgba(255, 255, 255, 0.82);
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .shop-item-card {
        flex-direction: column;
    }

    .shop-item-card__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* アイテム作成フォーム */
.shop-create-card {
    padding: 16px;
    border: 1px solid rgba(120, 105, 90, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 8px rgba(70, 55, 45, 0.06);
}

.shop-create-card__lead {
    margin: 0 0 14px;
    color: #5f5a55;
    line-height: 1.7;
}

.shop-create-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-create-form__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #4f453d;
    font-weight: 700;
}

.shop-create-form__field input,
.shop-create-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(120, 105, 90, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: #3f332c;
    font: inherit;
    font-weight: 400;
}

.shop-create-form__field small {
    color: #7b6f66;
    font-size: 0.84rem;
    font-weight: 400;
}

.shop-create-form__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #4f453d;
    font-size: 0.92rem;
}

.shop-create-form__button {
    align-self: flex-start;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background: #5d5148;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.shop-create-form__button:hover,
.shop-create-form__button:focus-visible {
    background: #75685e;
    color: #fff;
}

.shop-create-form__button:disabled,
.shop-create-form__button[disabled] {
    background: rgba(93, 81, 72, 0.28);
    color: rgba(255, 255, 255, 0.82);
    cursor: not-allowed;
}
