/**
 * オンラインショップページ専用CSS
 * 案C: リスト表示・視認性重視デザイン
 */

/* ページメイン - 2カラムレイアウト */
.page-shop {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
    background: var(--color-cream);
    display: flex;
    gap: 30px;
}

@media (min-width: 1024px) {
    .page-shop {
        padding: 40px 40px 120px;
    }
}

/* 左サイドバー（カート情報） */
.page-shop .shop-sidebar {
    flex-shrink: 0;
    width: 280px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.page-shop .cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.page-shop .cart-title {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-brown);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.page-shop .cart-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--color-gray);
    font-family: var(--font-mincho);
    font-size: 14px;
}

.page-shop .cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.page-shop .cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.page-shop .cart-item:last-child {
    border-bottom: none;
}

.page-shop .cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.page-shop .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-shop .cart-item-info {
    flex: 1;
    min-width: 0;
}

.page-shop .cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-shop .cart-item-price {
    font-size: 12px;
    color: var(--color-gray);
}

.page-shop .cart-item-qty {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-shop .cart-item-qty button {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.page-shop .cart-item-qty span {
    font-size: 13px;
    min-width: 20px;
    text-align: center;
}

.page-shop .cart-total {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}

.page-shop .total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--color-gray);
}

.page-shop .total-final {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-brown);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.page-shop .btn-checkout {
    width: 100%;
    padding: 12px;
    background: var(--color-brown);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s, opacity 0.3s;
}

.page-shop .btn-checkout:hover:not(:disabled) {
    background: #5a2d16;
}

.page-shop .btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* チェックアウトボタン（リンク版） */
.page-shop a.btn-checkout {
    display: block;
    text-align: center;
    text-decoration: none;
}

.page-shop .shop-info-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-shop .shop-info-box h4 {
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-brown);
    margin: 0 0 12px;
}

.page-shop .shop-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-shop .shop-info-box li {
    font-family: var(--font-mincho);
    font-size: 12px;
    color: var(--color-gray);
    line-height: 1.8;
    padding-left: 15px;
    position: relative;
}

.page-shop .shop-info-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-beige);
}

/* メインコンテンツエリア */
.page-shop .shop-main {
    flex: 1;
    min-width: 0;
}

/* ページヘッダー */
.page-shop .page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-shop .page-title {
    font-family: var(--font-base);
    font-size: 32px;
    font-weight: 500;
    color: var(--color-brown);
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.page-shop .page-subtitle {
    font-family: var(--font-mincho);
    font-size: 14px;
    color: var(--color-gray);
}

/* リード文 */
.page-shop .shop-lead {
    text-align: center;
    margin-bottom: 30px;
}

.page-shop .shop-lead p {
    font-family: var(--font-mincho);
    font-size: 16px;
    line-height: 2;
    color: var(--color-gray);
}

/* お知らせ */
.page-shop .shop-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.page-shop .shop-notice p {
    font-family: var(--font-mincho);
    font-size: 14px;
    color: #856404;
    margin: 0;
    line-height: 1.8;
}

/* 送料バナー（スクロール固定） */
.page-shop .shipping-banner-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
}

.page-shop .shipping-banner {
    background: var(--color-brown);
    color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* バナー内カートアイコン */
.page-shop .banner-cart {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 25px;
    transition: background 0.3s;
    position: relative;
}

.page-shop .banner-cart:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-shop .banner-cart .basket-icon {
    font-size: 24px;
}

.page-shop .cart-count-badge {
    background: #fff;
    color: var(--color-brown);
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.page-shop .cart-count-badge.empty {
    display: none;
}

.page-shop .shipping-item {
    text-align: center;
}

.page-shop .shipping-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.page-shop .shipping-value {
    font-size: 16px;
    font-weight: 500;
}

.page-shop .shipping-note {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 3px;
}

/* 商品がない場合 */
.page-shop .no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-gray);
    font-family: var(--font-mincho);
}

/* カテゴリセクション */
.page-shop .category-section {
    margin-bottom: 50px;
}

.page-shop .category-header {
    background: var(--color-beige);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: var(--font-base);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-brown);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-shop .category-icon {
    font-size: 22px;
}

/* 商品リスト */
.page-shop .product-list {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 商品行 */
.page-shop .product-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    transition: background 0.2s;
    flex-wrap: nowrap;  /* 折り返し禁止 - ボタンが下に落ちないように */
}

.page-shop .product-row:last-child {
    border-bottom: none;
}

.page-shop .product-row:hover {
    background: #faf8f5;
}

.page-shop .product-row.sold-out {
    opacity: 0.6;
}

/* 商品画像 */
.page-shop .product-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.page-shop .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.page-shop .product-row:hover .product-image img {
    transform: scale(1.08);
}

.page-shop .product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 11px;
}

/* 商品バッジ（商品名の右に配置） */
.page-shop .product-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    font-weight: 500;
    flex-shrink: 0;
}

.page-shop .badge-soldout {
    background: #999;
}

.page-shop .badge-tag-rice {
    background: #8bc34a;
}

.page-shop .badge-tag-gf {
    background: #4caf50;
}

.page-shop .badge-tag-award {
    background: var(--color-gold);
}

/* d5: バッジコンテナ */
.page-shop .badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* d5: グラデーションバッジ */
.page-shop .badge {
    font-size: 10px;
    padding: 2px 8px;  /* 上下2px 左右8px - 絵文字なしバッジ用 */
    border-radius: 12px;
    font-weight: 500;
    color: #fff;
}

.page-shop .badge-gf {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.page-shop .badge-rice {
    background: linear-gradient(135deg, #8D6E63, #A1887F);
}

.page-shop .badge-award {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #5D4037;
}

.page-shop .badge-frozen {
    background: linear-gradient(135deg, #E0E0E0, #B8B8B8);
    color: #fff;
    padding: 2px 8px 2px 6px;  /* 絵文字付き用 - 左を狭く */
}

.page-shop .badge-normal {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    padding: 2px 8px 2px 6px;  /* 絵文字付き用 - 左を狭く */
}

/* 商品情報 */
.page-shop .product-info {
    flex: 1;
    min-width: 150px;
}

.page-shop .product-name {
    font-family: var(--font-base);
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 8px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-shop .product-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.page-shop .product-desc {
    font-family: var(--font-mincho);
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* d5: 説明文プレビュー */
.page-shop .product-desc-preview {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
    font-family: var(--font-mincho);
}

/* 商品詳細情報項目 */
.page-shop .product-detail-item,
.page-shop .detail-item {
    font-family: var(--font-mincho);
    font-size: 14px;
    color: var(--color-text);
    margin: 5px 0 0;
    line-height: 1.6;
}

.page-shop .detail-label {
    font-family: var(--font-base);
    font-weight: 600;
    color: var(--color-brown);
    margin-right: 5px;
}

.page-shop .detail-text {
    display: inline-block;
    vertical-align: top;
    color: var(--color-text);
}

/* 右側コンテナ（価格+カートボタン）- 常に縦並び */
.page-shop .product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-start;  /* 上揃え */
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* 価格 */
.page-shop .product-price {
    flex-shrink: 0;
    text-align: center;
    min-width: 90px;
}

.page-shop .price-amount {
    font-family: var(--font-base);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-brown);
}

.page-shop .price-tax {
    font-size: 14px;
    color: var(--color-gray);
}

/* 発送方法バッジ */
.page-shop .shipping-badge {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-gray);
    font-family: var(--font-mincho);
}

/* 販売期間バッジ（タグとして表示） */
.page-shop .badge-tag-seasonal {
    background: linear-gradient(135deg, #ff9800, #ff5722); /* デフォルト：秋 */
}

/* 販売期間バッジ - 季節カラー */
.page-shop .badge-tag-seasonal-spring {
    background: linear-gradient(135deg, #f8bbd9, #f48fb1);
}

.page-shop .badge-tag-seasonal-summer {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.page-shop .badge-tag-seasonal-autumn {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

.page-shop .badge-tag-seasonal-winter {
    background: linear-gradient(135deg, #ffffff, #9e9e9e);
    color: #333;
}

.page-shop .badge-tag-seasonal-limited {
    background: linear-gradient(135deg, #ab47bc, #7b1fa2);
}

.page-shop .badge-tag-seasonal-christmas {
    background: linear-gradient(135deg, #c62828, #2e7d32);
}

.page-shop .badge-tag-seasonal-valentine {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

/* カートボタン */
.page-shop .product-action {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.page-shop .btn-cart {
    padding: 10px 20px;
    background: var(--color-brown);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: var(--font-base);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.page-shop .btn-cart:hover:not(:disabled) {
    background: #5a2d16;
    transform: scale(1.02);
}

.page-shop .btn-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* フローティングカート */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: calc(var(--sidebar-width) + 30px);
    background: var(--color-brown);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 500;
    transition: transform 0.3s;
}

.floating-cart:hover {
    transform: scale(1.05);
}

.floating-cart .cart-icon {
    font-size: 20px;
}

.floating-cart .cart-count {
    background: #fff;
    color: var(--color-brown);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

/* レスポンシブ - タブレット */
@media (max-width: 1024px) {
    .page-shop .shop-sidebar {
        width: 240px;
    }
}

/* レスポンシブ - モバイル */
@media (max-width: 1024px) {
    .page-shop {
        flex-direction: column;
        padding: 0 15px 100px;
    }

    .page-shop .shop-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        order: 2;
        margin-top: 30px;
    }

    .page-shop .shop-main {
        order: 1;
    }

    .page-shop .page-header {
        padding: 40px 0 30px;
    }

    .page-shop .page-title {
        font-size: 26px;
    }

    .page-shop .shipping-banner {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .page-shop .shipping-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .page-shop .shipping-label {
        margin-bottom: 0;
    }

    .page-shop .product-row {
        flex-wrap: wrap;
        padding: 15px;
        gap: 12px;
    }

    .page-shop .product-image {
        width: 70px;
        height: 70px;
    }

    .page-shop .product-info {
        flex: 1;
        min-width: calc(100% - 90px);
    }

    .page-shop .product-name {
        font-size: 15px;
    }

    .page-shop .product-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .page-shop .product-price {
        width: auto;
        text-align: left;
    }

    .page-shop .price-amount {
        font-size: 18px;
    }

    .page-shop .product-action {
        margin-left: auto;
    }

    .page-shop .btn-cart {
        padding: 8px 16px;
        font-size: 12px;
    }

    .floating-cart {
        right: 20px;
        bottom: 20px;
        padding: 12px 20px;
    }
}

/* カートステータスメッセージ（ボタンの下に絶対配置） */
.page-shop .cart-status {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    font-size: 12px;
    height: 18px;
    margin-top: 5px;
    text-align: center;
    line-height: 18px;
}

.page-shop .cart-status.loading {
    color: var(--color-gray);
}

.page-shop .cart-status.success {
    color: #4caf50;
}

.page-shop .cart-status.error {
    color: #e53935;
}

/* === フェーズ4追加: 数量セレクター・最低注文数 === */

/* 最低注文数の注意書き */
.page-shop .min-quantity-notice {
    font-size: 11px;
    color: var(--color-brown);
    background: #fff8e1;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 0 8px;
    text-align: center;
}

/* d5: カートラッパー - 白い円からはみ出さない薄い帯 */
.page-shop .cart-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-brown), #9a5a3a);
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(127, 63, 32, 0.35);
    transition: all 0.3s;
}

.page-shop .cart-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(127, 63, 32, 0.45);
}

/* 売り切れ・準備中のcart-wrapper */
.page-shop .cart-wrapper.disabled {
    background: linear-gradient(135deg, #bbb, #999);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: not-allowed;
}

.page-shop .cart-wrapper.disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* cart-wrapper内のquantity-selectorはリセット */
.page-shop .cart-wrapper.disabled .quantity-selector {
    background: transparent;
    padding: 0;
    opacity: 1;
}

.page-shop .cart-wrapper.disabled .qty-display {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    color: rgba(255,255,255,0.6);
}

.page-shop .cart-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.page-shop .cart-icon {
    margin-right: 2px;
}

/* 数量セレクター（ワンタップカート） */
.page-shop .quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 0;
}

.page-shop .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.3);
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-top: 2px;
}

.page-shop .qty-btn:hover:not(:disabled) {
    background: #fff;
    color: var(--color-brown);
    transform: scale(1.05);
}

.page-shop .qty-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.page-shop .qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.page-shop .qty-input {
    width: 32px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    font-family: var(--font-base);
    background: transparent;
    color: #fff;
    -moz-appearance: textfield;
}

.page-shop .qty-input::-webkit-outer-spin-button,
.page-shop .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* カートに入っている時のスタイル */
.page-shop .quantity-selector.in-cart .qty-input {
    color: #fff;
}

/* 売り切れ・準備中のスタイル（cart-wrapperなし） */
.page-shop .quantity-selector.disabled {
    opacity: 0.7;
    background: #e0e0e0;
    border-radius: 20px;
    padding: 8px 15px;
}

.page-shop .quantity-selector.disabled .qty-btn {
    background: #ccc;
    color: #999;
}

.page-shop .quantity-selector .qty-label {
    font-size: 12px;
    color: var(--color-gray);
    padding: 0 8px;
}

/* === フェーズ5追加: 商品オプション === */
.page-shop .product-option {
    margin-bottom: 8px;
}

.page-shop .option-label {
    display: block;
    font-size: 11px;
    color: var(--color-gray);
    margin-bottom: 4px;
}

.page-shop .option-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: var(--font-mincho, 'Shippori Mincho', serif);
    background: #fff;
    cursor: pointer;
}

.page-shop .option-select:focus {
    outline: none;
    border-color: var(--color-brown);
}

/* === フェーズ6追加: アレルギー情報・販売期間 === */

/* アレルギー情報 */
.page-shop .product-allergens {
    font-size: 11px;
    color: var(--color-gray);
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.page-shop .allergen-label {
    color: #e65100;
    font-weight: 500;
}

/* 販売期間バッジ */
.page-shop .product-sale-period {
    margin: 5px 0 0;
}

.page-shop .sale-period-badge {
    display: inline-block;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* ===========================================
   レスポンシブ対応（1024px以下でカード型に切り替え）
   =========================================== */
@media (max-width: 1024px) {
    /* 商品行をカード型に */
    .page-shop .product-row {
        flex-wrap: nowrap;
        padding: 15px;
        gap: 12px;
    }

    /* 画像を小さく */
    .page-shop .product-image {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    /* 商品情報 */
    .page-shop .product-info {
        flex: 1;
        min-width: 0;
    }

    .page-shop .product-name {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .page-shop .product-name-row {
        margin-bottom: 4px;
    }

    .page-shop .product-desc-preview {
        font-size: 12px;
        margin-top: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* バッジを小さく */
    .page-shop .badges {
        margin-top: 6px;
        gap: 4px;
    }

    .page-shop .badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    /* 価格 */
    .page-shop .product-price {
        min-width: auto;
        text-align: right;
    }

    .page-shop .price-amount {
        font-size: 18px;
    }

    .page-shop .price-tax {
        font-size: 11px;
    }

    /* カートボタンエリア */
    .page-shop .product-action {
        flex-shrink: 0;
    }

    .page-shop .cart-wrapper {
        padding: 8px 14px;
    }

    .page-shop .cart-icon {
        display: none;
    }

    .page-shop .cart-label {
        font-size: 12px;
    }

    .page-shop .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .page-shop .qty-input {
        width: 28px;
        font-size: 14px;
    }

    /* 最低注文数 */
    .page-shop .min-quantity-notice {
        font-size: 10px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }

    /* 商品オプション */
    .page-shop .product-option {
        margin-bottom: 6px;
    }

    .page-shop .option-select {
        font-size: 12px;
        padding: 5px 8px;
    }

    /* 詳細展開 */
    .page-shop .product-details {
        margin: 0 15px;
    }

    .page-shop .product-row.expanded + .product-details {
        padding: 15px;
    }

    .page-shop .detail-item {
        font-size: 13px;
    }
}

/* スマホ（600px以下）でさらに調整 */
@media (max-width: 600px) {
    .page-shop .product-row {
        padding: 12px;
        gap: 10px;
    }

    .page-shop .product-image {
        width: 70px;
        height: 70px;
    }

    .page-shop .product-name {
        font-size: 14px;
    }

    .page-shop .product-desc-preview {
        font-size: 11px;
        margin-top: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 1;  /* 1行に制限 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 価格とカートボタンを縦並び（Option A） */
    .page-shop .product-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .page-shop .product-price {
        min-width: auto;
    }

    .page-shop .price-amount {
        font-size: 16px;
    }

    .page-shop .cart-wrapper {
        padding: 6px 10px;
    }

    .page-shop .cart-label {
        display: none;  /* ラベル非表示 */
    }

    .page-shop .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .page-shop .qty-input {
        width: 24px;
        font-size: 13px;
    }
}

/* サイドバー内カートサマリーのスタイルは style-sidebar.css に移動 */

/* === 拡大表示トリガー === */
.page-shop .product-row[data-lightbox-trigger] {
    cursor: pointer;
    user-select: none;
}

.page-shop .product-row[data-lightbox-trigger]:hover {
    background: #faf8f5;
}

.page-shop .product-row[data-lightbox-trigger]:focus {
    outline: 2px solid var(--color-brown);
    outline-offset: -2px;
}

.page-shop .product-row[data-lightbox-trigger]:focus:not(:focus-visible) {
    outline: none;
}

/* ==============================================
   冷凍/常温混在通知 + まとめチェックボックス
   ============================================== */
.mixed-shipping-notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    border-right: 4px solid #f9a825;
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.mixed-shipping-notice .shipping-notice-text {
    margin: 0 0 8px;
    color: #5d4037;
}

.mixed-shipping-notice .combine-shipping-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.mixed-shipping-notice .combine-shipping-checkbox {
    flex-shrink: 0;
}