/* Mini Rinker - レスポンシブ商品カードスタイル */

.mr-card {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mr-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #ddd;
}

.mr-image-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
}

.mr-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mr-content {
    flex: 1;
    min-width: 0; /* テキストの折り返しを適切に処理 */
}

.mr-title {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Cocoonテーマのスタイルをリセット */
    border: none !important;
    padding: 0 !important;
    background: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.mr-price {
    font-size: 22px;
    font-weight: 700;
    color: #B12704;
    margin: 12px 0;
}

.mr-btn {
    display: block;
    background: linear-gradient(to bottom, #ff9900, #ff8800);
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #ff8800;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.mr-btn:hover {
    background: linear-gradient(to bottom, #ff8800, #ff7700);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #fff;
}

/* Mini Rinker カード内の要素を保護 */
.mr-card h3.mr-title {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .mr-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .mr-image-wrapper {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .mr-content {
        width: 100%;
    }
    
    .mr-title {
        font-size: 15px;
        text-align: left;
    }
    
    .mr-price {
        font-size: 20px;
    }
    
    .mr-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .mr-card {
        padding: 14px;
        margin: 16px 0;
    }
    
    .mr-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .mr-title {
        font-size: 15px;
        -webkit-line-clamp: 3;
    }
    
    .mr-price {
        font-size: 18px;
        margin: 10px 0;
    }
    
    .mr-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* コンパクトバージョン（オプション） */
.mr-card.compact {
    padding: 16px;
}

.mr-card.compact .mr-image-wrapper {
    width: 120px;
    height: 120px;
}

.mr-card.compact .mr-title {
    font-size: 16px;
}

.mr-card.compact .mr-price {
    font-size: 18px;
}

.mr-card.compact .mr-btn {
    padding: 8px 20px;
    font-size: 13px;
}

/* 複数カード横並び用のグリッド（オプション） */
.mr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.mr-grid .mr-card {
    margin: 0;
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    .mr-card {
        background: #1a1a1a;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .mr-title {
        color: #f0f0f0;
    }
    
    .mr-image-wrapper {
        background: #2a2a2a;
    }
    
    .mr-card:hover {
        border-color: #555;
    }
}