/* --- 全体レイアウト --- */
.bento-single .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #333;
}

.product-main-flex {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* --- 左側：ギャラリー --- */
.product-gallery-side {
    flex: 1;
    max-width: 50%;
}

.main-image-viewport img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.thumb-strip {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid #eee;
}

/* --- 右側：アクションパネル --- */
.product-action-side {
    flex: 1;
}

.store-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.product-code {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

/* レビュー */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-rating .star-rating {
    font-size: 14px;
    width: 85px;
    color: #ff9800;
}

/* タグ */
.product-tags, .product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: #f5f5f5;
    color: #666;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* 価格表示 */
.price-display {
    margin: 20px 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.tax-label {
    font-size: 14px;
    color: #666;
}

/* 配送・注文ルール */
.delivery-rules-summary {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 25px;
}

.rule-item {
    flex: 1;
    padding: 15px;
    text-align: center;
}

.rule-item:first-child {
    border-right: 1px solid #eee;
}

.rule-item .label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.rule-item .value {
    font-weight: bold;
    font-size: 16px;
}

/* カートボタン */
.cart-form-container .single_add_to_cart_button {
    width: 100%;
    background-color: #ff9800 !important;
    color: #fff !important;
    padding: 18px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    border: none !important;
    transition: 0.3s;
}

.cart-form-container .single_add_to_cart_button:hover {
    background-color: #e68900 !important;
}

.wishlist-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
}

/* --- 下部セクション（スペック表・店舗情報） --- */
.product-description-tabs {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title {
    font-size: 20px;
    border-left: 4px solid #333;
    padding-left: 15px;
    margin-bottom: 15px;
}

.menu-list-box {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    line-height: 1.8;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th, .spec-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: left;
}

.spec-table th {
    background: #f9f9f9;
    width: 200px;
    font-weight: bold;
}

/* 販売元カード */
.store-summary-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
}

.store-card-header {
    background: #f5f5f5;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-card-header h2 {
    font-size: 18px;
    margin: 0;
}

.btn-outline {
    border: 1px solid #333;
    padding: 5px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    border-radius: 4px;
}

.store-card-body {
    padding: 25px;
}

.store-meta-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.store-meta-list li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .product-main-flex {
        flex-direction: column;
    }
    .product-gallery-side, .product-action-side {
        max-width: 100%;
    }
}





/* カート周りの横並び */
.cart-form-container form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 数量エリア */
.quantity {
    display: flex !important;
    align-items: center;
}

/* 「注文数：」ラベル */
.qty-label {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-right: 8px;
    white-space: nowrap;
}

/* 数量入力フォーム本体 */
.quantity input.qty {
    width: 70px !important; /* 矢印のスペース分、少し広めに */
    height: 45px !important;
    border: 2px solid #666 !important; /* 枠線を濃く */
    border-radius: 4px !important;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    /* ブラウザ標準の矢印を常に表示させる設定 */
    appearance: auto !important;
    -moz-appearance: number-input !important;
    -webkit-appearance: number-input !important;
}

/* Chrome, Safari, Edgeで上下矢印を常に表示（不透明度を1にする） */
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
    opacity: 1 !important;
    height: 30px; /* 矢印を大きく */
    cursor: pointer;
}


/* 強制的に横並びを維持する設定 */
.cart-form-container form.cart {
    display: flex !important;
    flex-direction: row !important;
}







/* カートのエラーメッセージを強調 */
.woocommerce-error {
    border-top: 3px solid #d93025 !important;
    background-color: #fff2f0 !important;
    color: #d93025 !important;
    font-weight: bold;
    list-style: none !important;
    padding: 20px !important;
}

/* 配送設定サマリーの調整 */
.cart-delivery-summary h3 {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.cart-delivery-summary p {
    margin: 5px 0;
}