/* 無地注文モーダル専用スタイル */

/* 商品リストパネル専用スタイル */
.products-list-panel .panel-content {
    overflow-y: auto;
    padding: 0;
}

.products-list-panel .plain-order-notice {
    margin: 0;
}

/* 商品グリッドレイアウト（productsModalと同じ） */
.products-list-panel .products-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 70vh;
    overflow-y: visible;
}

/* 検索ボックスのスタイル */
.products-list-panel .search-box input {
    outline: none;
    transition: border-color 0.3s;
}

.products-list-panel .search-box input:focus {
    border-color: #ff6600;
}

/* 商品カードのスタイル（productsModalと同じ） */
.products-list-panel .product-card {
    display: flex;
    flex-direction: column;
    min-height: 400px; /* 最小高さを設定 */
}

/* 商品画像の高さを統一 */
.products-list-panel .product-image-container {
    height: 200px;
    padding-top: 0 !important; /* padding-topをオーバーライド */
}

.products-list-panel .product-image-container img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    position: static !important; /* positionをリセット */
}

.products-list-panel .product-price {
    margin-top: auto !important;
}

/* 商品詳細情報の高さ調整 */
.products-list-panel .product-details {
    margin-top: auto; /* 下部に配置 */
}

/* 商品カードのレスポンシブ対応 */
@media (max-width: 768px) {
    .products-list-panel .product-card {
        min-height: 350px; /* モバイルでは少し低く */
    }
    
    .products-list-panel .product-image-container,
    .products-list-panel .product-image-container img {
        height: 160px; /* モバイルでは画像も小さく */
    }
    
    .products-list-panel .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .products-list-panel .product-card {
        padding: 10px !important;
    }
    
    .products-list-panel .product-card h4 {
        font-size: 12px !important;
    }
    
    .products-list-panel .product-card p {
        font-size: 11px !important;
    }
    
    .products-list-panel .select-product-btn {
        padding: 6px !important;
        font-size: 12px !important;
    }
}

/* アニメーション効果 */
.products-list-panel.show {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 商品カードのホバー効果 */
.product-card {
    transition: all 0.3s ease !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 選択ボタン（productsModalと同じスタイル） */
.products-list-panel .select-product-btn {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 8px 0;
}

.products-list-panel .select-product-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.products-list-panel .select-product-btn:active {
    transform: translateY(0);
}

/* productsModalと同じスタイル */
.products-list-panel .product-info {
    padding: 15px;
}

.products-list-panel .product-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border-bottom:none;

}

.products-list-panel .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.products-list-panel .product-code {
    color: #666;
}

.products-list-panel .base-price {
    font-weight: 600;
    color: #1a1a1a;
}

.products-list-panel .product-details {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.products-list-panel .product-details > div {
    margin-bottom: 4px;
}

.products-list-panel .product-details strong {
    color: #999;
    font-weight: normal;
}

/* 無地注文通知のアイコン */
.plain-order-notice i {
    margin-right: 5px;
}

/* パネルヘッダーのスタイル統一 */
.products-list-panel .panel-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.products-list-panel .panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

/* スクロールバーのカスタマイズ */
.products-list-panel .panel-content::-webkit-scrollbar {
    width: 8px;
}

.products-list-panel .panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.products-list-panel .panel-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.products-list-panel .panel-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}