.cartItemWrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cartItem-image {
    flex: 0 0 300px;
    text-align: center;
}

.cartItem-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cartItem-data {
    flex: 1 1 auto;
}

.cartItem-actions {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 1rem;
}

.cartItem-actions .btn {
    margin: 0.5rem;
}

@media screen and (max-width: 768px) {
    .cartItemWrap {
        flex-direction: column;
    }

    .cartItem-image {
        flex: 0 0 auto;
        margin-bottom: 1rem;
    }

    .cartItem-actions {
        text-align: left;
    }
}

/* 数量増減ボタン */
.qty-form {
    gap: 6px;
}
.qty-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 1;
    font-size: 1rem;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-display {
    display: inline-block;
    min-width: 2em;
    text-align: center;
    font-weight: bold;
}

/* サマリーカード（右カラム） */
.cart-summary-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}
.sticky-lg-top {
    position: sticky;
    top: 1rem;
}
/* 郵便番号確定ボタン（オレンジ） */
.btn-zip {
    background-color: #f28c28;
    border-color: #f28c28;
    color: #fff;
}
.btn-zip:hover,
.btn-zip:focus {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* ============================================================
   カート・チェックアウト共通スタイル
   ============================================================ */

/* ページ背景（ヘッダー・フッターは除外） */
.checkout-page,
.cart-page {
    background-color: #f4f5f7;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* 商品カード（左カラム） */
.cart-item-card {
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    overflow: hidden;
}
.cart-item-header {
    background-color: #f0f7e6;
    border-bottom: 1px solid #d4e8b4;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a6f1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.summary-card-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    color: #444;
}

/* カートアクションボタン（ヘッダー内） */
.btn-cart-delete {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    line-height: 1.4;
}
.btn-cart-delete:hover,
.btn-cart-delete:focus {
    background-color: #b02a37;
    border-color: #b02a37;
    color: #fff;
}
.btn-cart-edit {
    background-color: #f28c28;
    border-color: #f28c28;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    line-height: 1.4;
}
.btn-cart-edit:hover,
.btn-cart-edit:focus {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}

/* 商品画像エリア（チェックアウトでは小さく） */
.checkout-page .cartItem-image {
    flex: 0 0 160px;
}

/* 商品名 */
.cart-item-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

/* アイテムラベル（checkout.php のインラインスタイルから移動） */
.item-label {
    display: inline-block;
    min-width: 7em;
    flex-shrink: 0;
    color: #999;
    font-size: 0.875rem;
}

/* リスト行（区切り線） */
.item-row {
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    align-items: center;
}
.item-row:last-child {
    border-bottom: none;
}

/* 価格強調 */
.item-price {
    color: var(--color-accent);
    font-weight: 700;
}

/* ============================================================
   チェックアウト ステップインジケーター
   ============================================================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0;
}
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.35;
    transition: opacity 0.3s;
}
.checkout-step.active {
    opacity: 1;
}
.checkout-step.completed {
    opacity: 0.7;
}
.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.checkout-step.active .step-number {
    background-color: #f28c28;
}
.checkout-step.completed .step-number {
    background-color: #4caf50;
}
.step-label {
    font-size: 0.7rem;
    color: #999;
    white-space: nowrap;
}
.checkout-step.active .step-label {
    color: #333;
    font-weight: 600;
}
.step-connector {
    flex: 1;
    height: 2px;
    background-color: #ddd;
    margin: 0 6px;
    margin-bottom: 18px;
    min-width: 20px;
    transition: background-color 0.3s;
}
.step-connector.active {
    background-color: #4caf50;
}

/* 配送先コンパクト表示 */
#addressSummaryPanel .card-body {
    line-height: 1.7;
}

/* パネル切替アニメーション */
#addressFormPanel,
#addressSummaryPanel,
#orderPanel,
#paymentPanel {
    transition: opacity 0.3s ease;
}

/* 購入ボタン強調 */
.submit-order-btn,
.confirm-submit-btn {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

